Public Sub DeleteSection( _ ByVal sectionDef As SectionDefinition _ )
public void DeleteSection( SectionDefinition sectionDef )
Parameters
- sectionDef
- The definition of the section to delete.
Public Sub DeleteSection( _ ByVal sectionDef As SectionDefinition _ )
public void DeleteSection( SectionDefinition sectionDef )
| 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 |
{
// Note: call within QueuedTask.Run()
{
//Use the SelectedVariableProfile to get the sections
//via its associated volume
var volume = voxelLayer.SelectedVariableProfile.Volume;
foreach (var section in volume.GetSections())
volume.DeleteSection(section);
//optional...
if (voxelLayer.Visualization != VoxelVisualization.Volume)
voxelLayer.SetVisualization(VoxelVisualization.Volume);
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)