Table of Contents

Property NumberOfHatchLines

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

NumberOfHatchLines

Gets how many lines the pattern draws, as AutoCAD's NumberOfHatchLines: each dash and dot of each pattern line cut by the loops, as Explode() draws them; nought for a solid fill and a gradient. A square 30 by 20 filled with a pattern made by the user of lines at 45 degrees 3.175 apart, as ANSI31's, draws 11; the same round a circle of radius 5 about its middle in the normal style draws 14. They are worked out when first asked for and kept while the HATCH is not changed, so that asking for them line by line takes no longer than asking for all of them; kept, they take 32 bytes a line, 32 MB for a million, for as long as the HATCH's object is held.

public int NumberOfHatchLines { get; }

Property Value

int

Exceptions

NotSupportedException

Thrown for a pattern the HATCH holds no lines of, as EvaluateHatch(bool) says.

InvalidOperationException

Thrown as EvaluateHatch(bool) says.