As we can see in the PdfSharp code a>, the constructor is defined as: public XRect(double x, double y, double width, double height)
.
Thinking about the two axes, X (Horizontal from left to right) and Y (Vertical from top to bottom) we have a point X, Y which is the starting point of the rectangle.
Then we have the value W (Width / Width) and H (Height / Height) which are respectively the width and height of the rectangle.
Example:
FromwhatIsawagaininthe PdfSharp code , this parameter is only used to calculate position and alignment of text.
And for you to know what size the string will occupy, you use the MeasureString
" that you inform you the text, and the font and a% object is returned with the width and height of the text.