[]
Draws a rectangle specified by a coordinate pair, a width, and a height.
public void DrawRectangle(Pen pen, float x, float y, float width, float height)
Type | Name | Description |
---|---|---|
Pen | pen | GrapeCity.Documents.Drawing.Pen object that determines the color, width, and style of the rectangle. |
float | x | x-coordinate of the upper-left corner of the rectangle to draw. |
float | y | x-coordinate of the upper-left corner of the rectangle to draw. |
float | width | Width of the rectangle to draw. |
float | height | Height of the rectangle to draw. |
All coordinates are expressed in points, measured from the upper-left corner of the page.
Draws a rectangle specified by a rectangle structure.
public void DrawRectangle(Pen pen, RectangleF rc)
Type | Name | Description |
---|---|---|
Pen | pen | GrapeCity.Documents.Drawing.Pen object that determines the color, width, and style of the rectangle. |
RectangleF | rc | A rectangle structure that represents the rectangle to draw. |
All coordinates are expressed in points, measured from the upper-left corner of the page.
Draws a rounded rectangle specified by rectangle and size structures.
public void DrawRectangle(Pen pen, RectangleF rc, SizeF corners)
Type | Name | Description |
---|---|---|
Pen | pen | GrapeCity.Documents.Drawing.Pen object that determines the color, width, and style of the rectangle. |
RectangleF | rc | A rectangle structure that represents the rectangle to draw. |
SizeF | corners | A size structure that contains the radius of the rectangle corners. |
All coordinates are expressed in points, measured from the upper-left corner of the page.