Click or drag to resize
Pdf Library for .NET

PdfLineStyle Class

Represents the style of a line used in PDF drawing operations (width, cap, join and dash). Assign an instance to a graphic element's LineStyle property to control how its outline is stroked.
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalPdfLineStyle

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public class PdfLineStyle

The PdfLineStyle type exposes the following members.

Constructors
 NameDescription
Public methodPdfLineStyle Initializes a new instance of the PdfLineStyle class with default values.
Public methodPdfLineStyle(PdfLineDashStyle) Initializes a new instance of the PdfLineStyle class with the specified dash style.
Public methodPdfLineStyle(Single) Initializes a new instance of the PdfLineStyle class with the specified line width.
Public methodPdfLineStyle(Single, PdfLineDashStyle) Initializes a new instance of the PdfLineStyle class with the specified line width and dash style.
Public methodPdfLineStyle(Single, PdfLineCapStyle, PdfLineJoinStyle) Initializes a new instance of the PdfLineStyle class with the specified line width, cap style, and join style.
Top
Properties
 NameDescription
Public propertyLineCapStyle Gets or sets the line cap style.
Public propertyLineDashStyle Gets or sets the line dash style.
Public propertyLineJoinStyle Gets or sets the line join style.
Public propertyLineWidth Gets or sets the line width in points.
Top
Example
PdfLineElement line = new PdfLineElement(0, 0, 200, 0);
line.LineStyle = new PdfLineStyle(2f, PdfLineDashStyle.Dash);
See Also