Class LineDashPattern
Represents a PDF line dash pattern: an array of dash/gap lengths and a phase offset. Spec §8.4.3.6.
Implements
Inherited Members
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public sealed class LineDashPattern : IEquatable<LineDashPattern>
Constructors
LineDashPattern(double[], double)
Initializes a new LineDashPattern with the specified array and phase.
Declaration
public LineDashPattern(double[] array, double phase = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| double[] | array | The dash/gap lengths. Must not be null. |
| double | phase | The phase offset. Default is 0. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when |
Properties
Array
Gets the alternating dash and gap lengths in user-space units.
Declaration
public double[] Array { get; }
Property Value
| Type | Description |
|---|---|
| double[] |
Phase
Gets the phase offset into the dash array (in user-space units).
Declaration
public double Phase { get; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
Equals(LineDashPattern?)
Indicates whether this dash pattern equals another.
Declaration
public bool Equals(LineDashPattern? other)
Parameters
| Type | Name | Description |
|---|---|---|
| LineDashPattern | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object?)
Indicates whether this dash pattern equals another object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
GetHashCode()
Returns a hash code for this dash pattern.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |