HatchLine

ReferencesSince v8.0
public class HatchLine : IDisposable
Hatch lines are used by hatch pattern to specify the dashes and offset patterns of the lines.
Remarks: Each line has the following information: Angle is the direction of the line counter-clockwise from the x-axis. The first line origin is at the base point. Each line repetition is offset from the previous line. Offset.X is parallel to the line and Offset.Y is perpendicular to the line. The base and offset values are rotated by the line's angle to produce a location in the hatch pattern's coordinate system. There can be gaps and dashes specified for drawing the line. If there are no dashes, the line is solid. Negative length dashes are gaps. Positive length dashes are drawn as line segments.

Constructors

HatchLine

#Since v8.0
Construts a new hatch line.
public HatchLine()

HatchLine

#Since v8.0
Construts a new hatch line.
public HatchLine(
HatchLine
hatchLine
The hatch line to copy.
)

Finalizer

~HatchLine

#
Passively releases the unmanaged object.
~HatchLine()

Properties

Angle

#Since v8.0
Gets and sets the angle, in radians, of the hatch line. The angle is measured counter-clockwise from the x-axis.
public double Angle { get; set; }

BasePoint

#Since v8.0
Get and sets this line's 2d base point.
public Point2d BasePoint { get; set; }

DashCount

#Since v8.0
Gets the number of dashes + gaps in this line.
public int DashCount { get; }

GetDashes

#Since v8.0
Gets all of the dashes.
public IEnumerable<double> GetDashes { get; }

IsValid

#Since v8.0
Verifies a hatch line is valid.
public bool IsValid { get; }

Offset

#Since v8.0
Get and sets this line's 2d offset for line repetitions. Offset.X is shift parallel to line. Offset.Y is spacing perpendicular to line.
public Vector2d Offset { get; set; }

PatternLength

#Since v8.0
Get the total length of a pattern repeat.
public double PatternLength { get; }

Methods

AppendDash

#Since v8.0
Add a dash to the pattern.
public void AppendDash(
dash
Length to append, < 0 for a gap.
)

DashAt

#Since v8.0
Get the dash length at the specified index.
public double DashAt(
dashIndex
Index of the dash to get.
)
The length of the dash. or gap if negative.

Dispose

#Since v8.0
Actively releases the unmanaged object.
public void Dispose()

Dispose

#
Releases the unmanaged object.
protected virtual void Dispose(
disposing
)

SetDashes

#Since v8.0
Sets a new dash array.
public void SetDashes(
dashes
The dash enumeration.
)