Method SetLocking
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
SetLocking(CadDocument, string, DxfCellRange, DxfCellState)
Locks or unlocks the cells of a range, as the Cell Locking menu does: Unlocked (None), Content Locked, Format Locked, or Content and Format Locked, one undo step. The flag of a linked cell is kept.
public static CadEditResult SetLocking(CadDocument document, string handle, DxfCellRange range, DxfCellState state)
Parameters
documentCadDocumentThe document.
handlestringThe table's handle.
rangeDxfCellRangeThe cells.
stateDxfCellStateThe state: the flags ContentLocked and FormatLocked.
Returns
- CadEditResult
What came of it; refused where the drawing is one before R2007, which holds no state.