ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMElement Class
Members Example

In This Topic
    CIMElement Class
    In This Topic
    A CIM representation of an element.
    Object Model
    CIMElement ClassMapPoint Class
    Syntax
    Example
    Lock an element
    {
      // The Locked property is displayed in the TOC as a lock symbol next
      // to each element.  If locked the element can't be selected in the layout
      // using the graphic selection tools.
      //Note: Must be on QueuedTask.Run
    
      //Reference an element 
      if (element != null)
      {
        // Modify the Locked property via the CIM
        CIMElement CIMElement = element.GetDefinition() as CIMElement;
        CIMElement.Locked = true;
        element.SetDefinition(CIMElement);
      }
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.CIM.CIMObject
          ArcGIS.Core.CIM.CIMElement
             ArcGIS.Core.CIM.CIMFrameElement
             ArcGIS.Core.CIM.CIMGraphicElement

    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also