Table of Contents

Method GetGridColor

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

GetGridColor(int, int, DxfGridLineType)

Gets the colour of a line of a cell, as AutoCAD's GetGridColor(row, column, gridLineType): the own of the edge that holds the line, its top (69), right (65), bottom (66) or left (68), of the index; null where it has none, its table's then. AutoCAD 2021 reads a line between two cells as the top or left edge of the one below or right of it where that cell holds the edge, its edge flag (172: 1 top, 2 right, 4 bottom, 8 left) set and one of the edge's overrides at least given with its flag, else as the bottom or right edge of the other where it holds it: the top of (2, 1) green reads as the bottom of (1, 1), whatever (1, 1) gives; the top of (2, 1) of a colour alone and the bottom of (1, 1) of a lineweight alone read no lineweight (D28c B1 to B15). A cell's own override without its edge flag, or its flag, holds no line.

public DxfColor GetGridColor(int row, int column, DxfGridLineType gridLineType)

Parameters

row int

The row, from nought.

column int

The column, from nought.

gridLineType DxfGridLineType

The line: one of HorizontalTop, HorizontalBottom, VerticalLeft and VerticalRight.

Returns

DxfColor

The colour, or null.

Exceptions

ArgumentOutOfRangeException

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