Table of Contents

Method SetCellState

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetCellState(int, int, DxfCellState)

Sets the state of a cell, as AutoCAD's SetCellState(row, column, state): Content Locked (1) and Format Locked (16) written into the cell's state in the TABLECONTENT, the flag Linked of a linked cell kept as it is whatever the state given says. A table of no TABLECONTENT is given one first, of cells of no content, as SetDataLink(DxfCellRange, DxfDataLink) gives it one: the XRECORD of ACAD_ROUNDTRIP_2008_TABLE_ENTITY, the table listed in ACDB_RECOMPOSE_DATA, without which AutoCAD reads none. Nothing is written where the cell is in that state already. A table, its cell and the state it keeps are written to a DXF or a DWG as they stand; the library itself refuses nothing a locked cell holds, so that its own edits, and Excel-style ones such as the viewer's, check GetCellState(int, int) first.

public void SetCellState(int row, int column, DxfCellState state)

Parameters

row int

The row, from nought.

column int

The column, from nought.

state DxfCellState

The state.

Exceptions

ArgumentOutOfRangeException

Thrown when the cell is not one of the table's.

InvalidOperationException

Thrown when the table is erased or not in a drawing, the drawing is one before R2007 (AC1021), which holds no TABLECONTENT, or the TABLECONTENT has no such cell.