Location and Sizing
The System.Drawing assembly also provides some handy data types for encapsulating points, rectangles, and sizes. This way you do not need to specify separate parameters for x and y to every DrawString method you call. These data types include Point, Size, Rectangle, PointF, SizeF, and RectangleF.
These three classes store their values as an Integer data type:
System.Drawing.Point. The Point data type defines a location in two-dimensional space. This location is specified by an x coordinate and a y coordinate.
System.Drawing.Size. The Size data type defines a width and a height. Each of these four values is stored as an Integer.
System.Drawing.Rectangle. The Rectangle data type is defined by a Point and a Size.
There are some ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access