ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / GroupLayer Class / SetSublayerVisibilityMode Method
The sublayer visibility mode.

In This Topic
    SetSublayerVisibilityMode Method
    In This Topic
    Sets the mode controlling the visibility of sublayers in the group layer. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetSublayerVisibilityMode( 
       SublayerVisibilityMode visibilityMode
    )
    Public Sub SetSublayerVisibilityMode( _
       ByVal visibilityMode As SublayerVisibilityMode _
    ) 

    Parameters

    visibilityMode
    The sublayer visibility mode.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    If the mode is set to ArcGIS.Core.CIM.SublayerVisibilityMode.Exclusive then only one sublayer can be visible at a time. If multiple sublayers are visible, then all sublayers are set to be not visible except for the first visible sublayer. If no sublayers are visible, then the first sublayer is set to be visible.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.4 or higher.
    See Also