ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / VoxelLayer Class / DeleteSection Method
The definition of the locked section to delete
Example

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

    Parameters

    lockedSectionDef
    The definition of the locked section to delete
    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
    Delete a Locked Section
    {
      // Note: call within QueuedTask.Run()
      {
        if (voxelLayer.GetLockedSections().Count() == 0)
          return;
    
        //Delete the last locked section from the collection of
        //locked sections
        voxelLayer.DeleteSection(voxelLayer.GetLockedSections().Last());
      }
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also