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
Finalizer
Properties
Gets and sets the angle, in radians, of the hatch line. The angle is measured counter-clockwise from the x-axis.
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.
Methods
Add a dash to the pattern.
Parameters:
| dash (double) | Length to append, < 0 for a gap. |
Get the dash length at the specified index.
Parameters:
| dashIndex (int) | Index of the dash to get. |
Returns: The length of the dash. or gap if negative.
Sets a new dash array.
Parameters:
| dashes (IEnumerable<double>) | The dash enumeration. |