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
rangeDxfCellRangeThe cells, within the table.
flagsDxfCellStateThe flags looked for.
rowintThe row of the cell found; -1 where none is.
columnintThe 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.