Table of Contents

Method Of

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Of(DxfHatch)

Reads the settings of a hatch, as HATCHEDIT shows them: its type, pattern, angle in degrees, scale, spacing, double, island style and association, whether it is annotative, and its gradient's name, colours, one colour or two, tint and shift. The origin, layer, colour, background colour and transparency are not read back (they stay as a new hatch leaves them, null): a hatch keeps its origin in its lines' base points, and HATCHEDIT lays them again from the origin it is given.

public static CadHatchSettings Of(DxfHatch hatch)

Parameters

hatch DxfHatch

The hatch.

Returns

CadHatchSettings

The settings.

Exceptions

ArgumentNullException

Thrown when the hatch is null.