Table of Contents

Method SetGridVisibility

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetGridVisibility(int, int, DxfGridLineType, bool)

Sets whether lines of a cell are drawn, as AutoCAD's SetGridVisibility(row, column, gridLineType, visibility): the cell's own of each edge the lines name (top 289, right 285, bottom 286, left 288), 1 drawn and 0 not, its flag (0x4000 to 0x20000) set and the edge in the cell's edge flags (172), as SetGridColor(int, int, DxfGridLineType, DxfColor).

public void SetGridVisibility(int row, int column, DxfGridLineType gridLineType, bool visible)

Parameters

row int

The row, from nought.

column int

The column, from nought.

gridLineType DxfGridLineType

The lines, one or more of the cell's four.

visible bool

Whether they are drawn.

Exceptions

ArgumentOutOfRangeException

Thrown when the cell is not one of the table's, or the lines hold a flag none of DxfGridLineType has.

ArgumentException

Thrown when the lines name none of the cell's four.

InvalidOperationException

Thrown when the table is erased.

SetGridVisibility(bool, DxfGridLineType, DxfRowType)

Sets whether lines of the rows of kinds are drawn, as AutoCAD's SetGridVisibility(visible, borders, rows): the table's own (284 to 289, 1 drawn and 0 not), its flag set in 96.

public void SetGridVisibility(bool visible, DxfGridLineType borders, DxfRowType rows)

Parameters

visible bool

Whether they are drawn.

borders DxfGridLineType

The lines, one or more of the six.

rows DxfRowType

The rows, one or more of the three kinds.

Exceptions

ArgumentOutOfRangeException

Thrown when the lines or the rows are none, or hold a flag none of their kind has.

InvalidOperationException

Thrown when the table is erased.