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.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7

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.