PdfDashPattern Class

File
wijmo.pdf.js
Module
wijmo.pdf

Represents the dash pattern used to stroke paths.

Constructor

Properties

Methods

Constructor

constructor

constructor(dash?: number, gap?: number, phase?: number): PdfDashPattern

Initializes a new instance of the PdfDashPattern class.

Parameters
Returns
PdfDashPattern

Properties

dash

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

Type
number

gap

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.

Type
number

phase

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

Type
number

Methods

clone

clone(): PdfDashPattern

Creates a copy of this PdfDashPattern.

Returns
PdfDashPattern

equals

equals(value: PdfDashPattern): boolean

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

Parameters
Returns
boolean