Public Sub SetLockedSectionContainerExpanded( _ ByVal isExpanded As Boolean _ )
public void SetLockedSectionContainerExpanded( bool isExpanded )
Parameters
- isExpanded
- Toggle expanded.
Public Sub SetLockedSectionContainerExpanded( _ ByVal isExpanded As Boolean _ )
public void SetLockedSectionContainerExpanded( bool isExpanded )
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run |
{
//Toggle containers and visibility in the TOC
// Note: call within QueuedTask.Run()
{
voxelLayer.SetExpanded(!voxelLayer.IsExpanded);
voxelLayer.SetVisibility(!voxelLayer.IsVisible);
voxelLayer.SetIsosurfaceContainerExpanded(!voxelLayer.IsIsosurfaceContainerExpanded);
voxelLayer.SetIsosurfaceContainerVisibility(!voxelLayer.IsIsosurfaceContainerVisible);
voxelLayer.SetSliceContainerExpanded(voxelLayer.IsSliceContainerExpanded);
voxelLayer.SetSliceContainerVisibility(!voxelLayer.IsSliceContainerVisible);
voxelLayer.SetSectionContainerExpanded(!voxelLayer.IsSectionContainerExpanded);
voxelLayer.SetSectionContainerVisibility(!voxelLayer.IsSectionContainerVisible);
voxelLayer.SetLockedSectionContainerExpanded(!voxelLayer.IsLockedSectionContainerExpanded);
voxelLayer.SetLockedSectionContainerVisibility(!voxelLayer.IsLockedSectionContainerVisible);
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)