[]
        
(Showing Draft Content)

PdfDashPattern Class

PdfDashPattern Class

Represents the dash pattern used to stroke paths.

Heirarchy

  • PdfDashPattern

Constructors

Properties

Methods

Constructors

constructor

  • new PdfDashPattern(dash?: number, gap?: number, phase?: number): PdfDashPattern
  • Initializes a new instance of the PdfDashPattern class.

    Parameters

    • Optional dash: number

      The length of alternating dashes, in points.

    • Optional gap: number

      The length of alternating gaps, in points.

    • Optional phase: number

      The distance in the dash pattern to start the dash at, in points.

    Returns PdfDashPattern

Properties

dash

dash: number

Gets or sets the length of alternating dashes, in points. The default value is null which indicates no dash pattern, but a solid line.

gap

gap: number

Gets or sets the length of alternating gaps, in points. The default value is equal to dash which indicates that dashes and gaps will have the same length.

phase

phase: number

Gets or sets the distance in the dash pattern to start the dash at, in points. The default value is 0.

Methods

clone

equals

  • Determines whether the specified PdfDashPattern instance is equal to the current one.

    Parameters

    Returns boolean

    true if the specified object is equal to the current one, otherwise false.