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 |
{
await 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)