API Documentation > CorelDRAW > 2025-v26 > Layer > IVGLayer
Layer.Editable property
Returns or sets the layer's editability state
Syntax:
Property Get Editable() As Boolean
Property Let Editable(ByVal Value As Boolean)
Remarks:
The Editable property returns or specifies whether a layer is editable (that is, unlocked). If the Editable property of a layer is True, the layer and its contents are editable.
Examples:
The following VBA example locks the active layer, preventing both the layer and its contents from being edited.
Sub Test()
ActiveLayer.Editable = False 
End Sub