Show / Hide Table of Contents

Interface ILayerContent

An interface for building a Table of Contents.

Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public interface ILayerContent

Properties

Name Description
CanChangeVisibility

Gets a value indicating whether the layer content's visibility can be changed.

IsVisible

Gets or sets a value indicating whether the layer content is visible.

Name

Gets the name of the layer content.

ShowInLegend

Gets or sets a value indicating whether the layer content participates in the legend.

SublayerContents

Gets the sub layer contents of a layer content.

Methods

Name Description
GetLegendInfosAsync()

Returns an immutable list of LegendInfo.

IsVisibleAtScale(Double)

Returns the layer content's effective visibility at the specified scale.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0

Relevant samples

Control annotation sublayer visibility: Use annotation sublayers to gain finer control of annotation layer subtypes.
Identify layers: Identify features in all layers in a map. MapView supports identifying features across multiple layers. Because some layer types have sublayers, the sample recursively counts results for sublayers within each layer.
Select ENC features: Select features in an ENC layer.
In This Article
Back to top Copyright © 2022 Esri.