Table of Contents

Method GridColor

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

GridColor(int, int, DxfCellEdgeMasks)

Gets the colour of an edge of a cell, as AutoCAD's GridColor(row, col, edge): as GetGridColor(int, int, DxfGridLineType).

public DxfColor GridColor(int row, int col, DxfCellEdgeMasks edge)

Parameters

row int

The row, from nought.

col int

The column, from nought.

edge DxfCellEdgeMasks

The edge, one of the four.

Returns

DxfColor

The colour, or null where the cell has none of its own.

Exceptions

ArgumentOutOfRangeException

Thrown when the cell is not one of the table's, or the edge is not one of the four.

GridColor(DxfGridLineType, DxfRowType)

Gets the colour of a line of the rows of a kind, as AutoCAD's GridColor(gridlineType, type): the table's own, after its last cell, or in its head after its flags and before its heights where AutoCAD 2021 writes the table's own overrides, of the index (64, 65, 66, 63, 68, 69 for the lines across top, inside and bottom and down left, inside and right), its flag in 94; null where it has none, its table style's then. The groups of one code are read in the order of their flags, the title's, the header's, then the data's, and after the table's colours of its rows (64 and 63 with their flags in 93), as AutoCAD writes them.

public DxfColor GridColor(DxfGridLineType gridlineType, DxfRowType type)

Parameters

gridlineType DxfGridLineType

The line: one of the six.

type DxfRowType

The rows: one of TitleRow, HeaderRow and DataRow.

Returns

DxfColor

The colour, or null.

Exceptions

ArgumentOutOfRangeException

Thrown when the line is not one of the six, or the rows not of one kind.