• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class LineDashPattern

Represents a PDF line dash pattern: an array of dash/gap lengths and a phase offset. Spec §8.4.3.6.

Inheritance
object
LineDashPattern
Implements
IEquatable<LineDashPattern>
Inherited Members
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
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 array is null.

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
object.Equals(object)

GetHashCode()

Returns a hash code for this dash pattern.

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

Implements

IEquatable<T>
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX