Table of Contents

Property LockLayerMethod

Namespace
VectorDraw.Professional.vdObjects
Assembly
VectorDraw.Professional.dll

LockLayerMethod

Get/Set a vdDocument.LockLayerMethodEnum value representing how entities in Lock layers are used in methods.

public vdDocument.LockLayerMethodEnum LockLayerMethod { get; set; }

Property Value

vdDocument.LockLayerMethodEnum

Examples

Making a drawing to be read-only.

doc.UndoHistory.PushEnable(false);//do not write the following commands in to undo history so they can not be undone later
foreach (vdLayer layer in doc.Layers)
{
    layer.Lock = true;
}
doc.LockLayerMethod = vdDocument.LockLayerMethodEnum.DisableAll;
doc.UndoHistory.PopEnable();

Remarks

Default value is Default which prevents entities in lock layers to be added in selections.