The rectangle that defines the full area into which all graphics
will be rendered.
| C# | Visual Basic | Visual C++ |
public RectangleF Rect{ get; set;}
Public Property Rect As RectangleF
public: property RectangleF Rect { RectangleF get (); void set (RectangleF value); }
Units are pixels.
Note that this rectangle has x, y, width, and height. Most of the
GDI+ graphic primitive actually draw one pixel beyond those dimensions. For
example, for a rectangle of ( X=0, Y=0, Width=100, Height=100 ), GDI+ would
draw into pixels 0 through 100, which is actually 101 pixels. For the
ZedGraph Rect, a Width of 100 pixels means that pixels 0 through 99 are used
