Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbTable::setCellState Method
Syntax
C++
void setCellState(OdInt32 row, OdInt32 col, OdDb::CellState nLock);

Sets the cell state. 

 

Parameters
Description
row
[in] Row index of the cell.
col
[in] Column index of the cell.
nLock
[in] Cell state.

Cell state should take one of the following values: 

 

Name
Value
kCellStateNone
0x00
kCellStateContentLocked
0x01
kCellStateContentReadOnly
0x02
kCellStateLinked
0x04
kCellStateContentModifiedAfterUpdate
0x08
kCellStateFormatLocked
0x10
kCellStateFormatReadOnly
0x20
kCellStateFormatModifiedAfterUpdate
0x40
kAllCellStates
(kCellStateContentLocked | kCellStateContentReadOnly |
kCellStateLinked | kCellStateContentModifiedAfterUpdate |
kCellStateFormatLocked | kCellStateFormatReadOnly |
kCellStateFormatModifiedAfterUpdate)

 

Method generates the eInvalidInput exception when the input row number and column number are less than 0 or greater than table size.

Copyright © 2002-2022. Open Design Alliance All rights reserved.