[]
        
(Showing Draft Content)

C1.C1Pdf.C1PdfDocument.DrawLine

DrawLine Method

DrawLine(Pen, float, float, float, float)

Draws a line connecting the two points specified by coordinate pairs.

Declaration
public void DrawLine(Pen pen, float x1, float y1, float x2, float y2)
Parameters
Type Name Description
Pen pen

Pen object that determines the color, width, and style of the line.

float x1

x-coordinate of the first point.

float y1

y-coordinate of the first point.

float x2

x-coordinate of the second point.

float y2

y-coordinate of the second point.

Remarks

All coordinates are expressed in points, measured from the upper-left corner of the page.

DrawLine(Pen, PointF, PointF)

Draws a line connecting two point structures.

Declaration
public void DrawLine(Pen pen, PointF pt1, PointF pt2)
Parameters
Type Name Description
Pen pen

Pen object that determines the color, width, and style of the line.

PointF pt1

The first point.

PointF pt2

The second point.

Remarks

All coordinates are expressed in points, measured from the upper-left corner of the page.