Table of Contents

Method TryFindCellState

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

TryFindCellState(DxfCellRange, DxfCellState, out int, out int)

Finds the first cell of a range, row by row, whose state holds any of the flags given, as a check of a whole range in one reading of the TABLECONTENT where GetCellState(int, int) reads it once for each cell: the Table Cell tab asks it before it edits cells. A table with no TABLECONTENT holds no state, and is answered at once.

public bool TryFindCellState(DxfCellRange range, DxfCellState flags, out int row, out int column)

Parameters

range DxfCellRange

The cells, within the table.

flags DxfCellState

The flags looked for.

row int

The row of the cell found; -1 where none is.

column int

The column of the cell found; -1 where none is.

Returns

bool

Whether a cell was found.

Exceptions

ArgumentNullException

Thrown when the range is null.

ArgumentOutOfRangeException

Thrown when the range reaches past the table's rows or columns.