Draws a line connecting the two points specified by coordinate pairs.
Namespace:
C1.Silverlight.PdfAssembly: C1.Silverlight.Pdf (in C1.Silverlight.Pdf.dll)
Syntax
C# |
---|
public void DrawLine( Pen pen, double x1, double y1, double x2, double y2 ) |
Visual Basic |
---|
Public Sub DrawLine ( _ pen As Pen, _ x1 As Double, _ y1 As Double, _ x2 As Double, _ y2 As Double _ ) |
Parameters
- pen
- Type: C1.Silverlight.Pdf..::..Pen
Pen object that determines the color, width, and style of the line.
- x1
- Type: System..::..Double
x-coordinate of the first point.
- y1
- Type: System..::..Double
y-coordinate of the first point.
- x2
- Type: System..::..Double
x-coordinate of the second point.
- y2
- Type: System..::..Double
y-coordinate of the second point.
Remarks
All coordinates are expressed in points, measured from the upper-left corner of the page.