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
public HatchLine()
Construts a new hatch line.

HatchLine

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

Finalizer

~HatchLine

#
~HatchLine()
Passively releases the unmanaged object.

Properties

Angle

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

BasePoint

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

DashCount

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

GetDashes

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

IsValid

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

Offset

#Since v8.0
public Vector2d Offset { get; set; }
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.

PatternLength

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

Methods

AppendDash

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

DashAt

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

Dispose

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

Dispose

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

SetDashes

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