ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / VoxelLayer Class / IsLockedSectionContainerExpanded Property
Example

In This Topic
    IsLockedSectionContainerExpanded Property
    In This Topic
    Gets whether the locked section container appears expanded.
    Syntax
    public bool IsLockedSectionContainerExpanded {get;}
    Public ReadOnly Property IsLockedSectionContainerExpanded As Boolean
    Remarks
    When the locked section container is expanded in the TOC, locked section entries are visible.
    Example
    Manipulate the Voxel Layer TOC Group
    {
      //Toggle containers and visibility in the TOC
    
      await QueuedTask.Run(() =>
      {
        voxelLayer.SetExpanded(!voxelLayer.IsExpanded);
        voxelLayer.SetVisibility(!voxelLayer.IsVisible);
        voxelLayer.SetIsosurfaceContainerExpanded(!voxelLayer.IsIsosurfaceContainerExpanded);
        voxelLayer.SetIsosurfaceContainerVisibility(!voxelLayer.IsIsosurfaceContainerVisible);
        voxelLayer.SetSliceContainerExpanded(voxelLayer.IsSliceContainerExpanded);
        voxelLayer.SetSliceContainerVisibility(!voxelLayer.IsSliceContainerVisible);
        voxelLayer.SetSectionContainerExpanded(!voxelLayer.IsSectionContainerExpanded);
        voxelLayer.SetSectionContainerVisibility(!voxelLayer.IsSectionContainerVisible);
        voxelLayer.SetLockedSectionContainerExpanded(!voxelLayer.IsLockedSectionContainerExpanded);
        voxelLayer.SetLockedSectionContainerVisibility(!voxelLayer.IsLockedSectionContainerVisible);
      });
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also