ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / VoxelLayer Class / UpdateSection Method
The definition of the locked section to update
Example

In This Topic
    UpdateSection Method (VoxelLayer)
    In This Topic
    Update the specified locked section. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void UpdateSection( 
       LockedSectionDefinition lockedSectionDef
    )
    Public Sub UpdateSection( _
       ByVal lockedSectionDef As LockedSectionDefinition _
    ) 

    Parameters

    lockedSectionDef
    The definition of the locked section to update
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run
    Locked section not found in the collection of sections
    Locked section is null
    Example
    Update Locked Section Visibility
    //var voxelLayer = ... ;
    //Must be on the QueuedTask.Run()
    
    if (voxelLayer.Visualization != VoxelVisualization.Surface)
        voxelLayer.SetVisualization(VoxelVisualization.Surface);
    voxelLayer.SetLockedSectionContainerExpanded(true);
    voxelLayer.SetLockedSectionContainerVisibility(true);
    
    var locked_sections = voxelLayer.GetLockedSections().Where(ls => !ls.IsVisible);
    
    //Make them visible
    foreach (var locked_section in locked_sections)
    {
        locked_section.IsVisible = true;
        //apply change
        voxelLayer.UpdateSection(locked_section);
    }
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also