Method DrawLine
- Namespace
- SoftZenPdf
- Assembly
- SoftZenPdf.dll
DrawLine(double, double, double, double, PdfColor?, double)
Draws a straight line.
public ContentStreamWriter DrawLine(double x1, double y1, double x2, double y2, PdfColor? color = null, double lineWidth = 1)
Parameters
x1doublex of the start point, in points.
y1doubley of the start point, in points.
x2doublex of the end point, in points.
y2doubley of the end point, in points.
colorPdfColor?Line colour; defaults to black.
lineWidthdoubleLine width, in points.
Returns
Exceptions
- InvalidOperationException
Called inside a text object.