ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / VoxelLayer Class / SetLockedSectionContainerVisibility Method
Toggle visibility.
Example

In This Topic
    SetLockedSectionContainerVisibility Method
    In This Topic
    Sets the locked section container visibility. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetLockedSectionContainerVisibility( 
       bool isVisible
    )
    Public Sub SetLockedSectionContainerVisibility( _
       ByVal isVisible As Boolean _
    ) 

    Parameters

    isVisible
    Toggle visibility.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run
    Example
    Manipulate the Voxel Layer TOC Group
    //var voxelLayer = ...
    //Must be on the QueuedTask.Run()
    
    //Toggle containers and visibility in the TOC
    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, Windows 10

    ArcGIS Pro version: 3.0 or higher.
    See Also