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

In This Topic
    IsExpandedAllTheWayUp Method
    In This Topic
    Gets the expanded state of the layer and it's parents.
    Syntax
    protected static bool IsExpandedAllTheWayUp( 
       Layer layer
    )
    Protected Shared Function IsExpandedAllTheWayUp( _
       ByVal layer As Layer _
    ) As Boolean

    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