public void DeleteSection( SectionDefinition sectionDef )
Public Sub DeleteSection( _ ByVal sectionDef As SectionDefinition _ )
Parameters
- sectionDef
- The definition of the section to delete.
public void DeleteSection( SectionDefinition sectionDef )
Public Sub DeleteSection( _ ByVal sectionDef As SectionDefinition _ )
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run |
System.ArgumentException | Invalid section definition specified |
System.ArgumentNullException | Section is null |
System.ArgumentException | Section not found in the collection of sections |
//var voxelLayer = ... ; //Must be on the QueuedTask.Run() //Use the SelectedVariableProfile to get the sections //via its associated volume var volume = voxelLayer.SelectedVariableProfile.Volume; //At 2.x - foreach (var section in voxelLayer.GetSections()) // voxelLayer.DeleteSection(section); foreach (var section in volume.GetSections()) volume.DeleteSection(section); //optional... if (voxelLayer.Visualization != VoxelVisualization.Volume) voxelLayer.SetVisualization(VoxelVisualization.Volume);
Target Platforms: Windows 11, Windows 10, Windows 8.1