Table of Contents

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

document CadDocument

The document.

handle string

The table's handle.

range DxfCellRange

The cells.

state DxfCellState

The state: the flags ContentLocked and FormatLocked.

Returns

CadEditResult

What came of it; refused where the drawing is one before R2007, which holds no state.