PdfCanvas
DrawLine Method (PdfPen, Single, Single, Single, Single)
|
Draws a line.
Namespace:
Spire.Pdf.Graphics
Assembly:
Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public void DrawLine(
PdfPen pen,
float x1,
float y1,
float x2,
float y2
)
Public Sub DrawLine (
pen As PdfPen,
x1 As Single,
y1 As Single,
x2 As Single,
y2 As Single
)
public:
void DrawLine(
PdfPen^ pen,
float x1,
float y1,
float x2,
float y2
)
member DrawLine :
pen : PdfPen *
x1 : float32 *
y1 : float32 *
x2 : float32 *
y2 : float32 -> unit
Parameters
-
pen
-
Type:
Spire.Pdf.Graphics
PdfPen
The pen.
-
x1
-
Type:
System
Single
The x1.
-
y1
-
Type:
System
Single
The y1.
-
x2
-
Type:
System
Single
The x2.
-
y2
-
Type:
System
Single
The y2.
See Also