ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Layer Class / IsExpanded Property
Version

IsExpanded Property (Layer)
Gets whether the layer is expanded or collapsed on the TOC.
Syntax
public bool IsExpanded {get;}
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also