ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / BulkLayerCreationParams Class / ExpandedState Property

In This Topic
    ExpandedState Property (BulkLayerCreationParams)
    In This Topic
    Gets and sets the layer expanded state for all layers. Default value is LayerExpandedState.Default meaning that the expanded state of the layer is set according to the layer type. On creation, some layer types are expanded by default (for example FeatureLayers, CatalogLayers, TopologyLayers); other layer types are collapsed by default (for example TinLayers, TerrainLayers, ParcelLayers).
    Syntax
    public LayerExpandedState ExpandedState {get; set;}
    Public Property ExpandedState As LayerExpandedState
    Remarks
    To control each individual layer expanded state, create the BulkLayerCreationParams with a set of LayerCreationParams objects. Set the ExpandedState property for each of the LayerCreationParams as appropriate. If this property is set on the BulkLayerCreationParams (i.e. not Default), then it will override the individual layer expanded states that are set.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also