ArcGIS Pro 2.7 API Reference Guide
IsLocked Property (Element)

ArcGIS.Desktop.Layouts Namespace > Element Class : IsLocked Property
Gets the locked state of an element.
Syntax
public virtual bool IsLocked {get;}
Public Overridable ReadOnly Property IsLocked As Boolean

Property Value

Type: Boolean
Remarks
Returns true if an element is checked on in the table of contents.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

Element Class
Element Members