ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Layer Class / IsExpandedAllTheWayUp Method
the layer to check
Version

IsExpandedAllTheWayUp Method
Gets the expanded state of the layer and it's parents.
Syntax
protected static bool IsExpandedAllTheWayUp( 
   Layer layer
)

Parameters

layer
the layer to check

Return Value

Returns true if this layer and all its container layers are expanded. In other words, if it can be seen in the TOC.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also