Public Sub UpdateSection( _ ByVal lockedSectionDef As LockedSectionDefinition _ )
public void UpdateSection( LockedSectionDefinition lockedSectionDef )
Parameters
- lockedSectionDef
- The definition of the locked section to update
Public Sub UpdateSection( _ ByVal lockedSectionDef As LockedSectionDefinition _ )
public void UpdateSection( LockedSectionDefinition lockedSectionDef )
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run |
| System.ArgumentException | Locked section not found in the collection of sections |
| System.ArgumentNullException | Locked section is null |
{
// Note: call within 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);
}
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)