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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.0 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 100.15 |
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.