Draws a rectangle specified by a coordinate pair, a width, and a height.
Namespace:
C1.Silverlight.PdfAssembly: C1.Silverlight.Pdf (in C1.Silverlight.Pdf.dll)
Syntax
C# |
---|
public void DrawRectangle( Pen pen, double x, double y, double width, double height ) |
Visual Basic |
---|
Public Sub DrawRectangle ( _ pen As Pen, _ x As Double, _ y As Double, _ width As Double, _ height As Double _ ) |
Parameters
- pen
- Type: C1.Silverlight.Pdf..::..Pen
Pen object that determines the color, width, and style of the rectangle.
- x
- Type: System..::..Double
x-coordinate of the upper-left corner of the rectangle to draw.
- y
- Type: System..::..Double
x-coordinate of the upper-left corner of the rectangle to draw.
- width
- Type: System..::..Double
Width of the rectangle to draw.
- height
- Type: System..::..Double
Height of the rectangle to draw.
Remarks
All coordinates are expressed in points, measured from the upper-left corner of the page.