Show / Hide Table of Contents

Class AnnotationSublayer

Allows you to interrogate the properties of a sublayer within an AnnotationLayer and to change the visibility of the sublayer.

Inheritance
Object
AnnotationSublayer
Implements
ILayerContent
INotifyPropertyChanged
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class AnnotationSublayer : ILayerContent, INotifyPropertyChanged
Remarks

You can get a ReadOnlyList of ILayerContent of the AnnotationSublayer from an AnnotationLayer using the SublayerContents property. AnnotationSublayer objects only exist as part of an AnnotationLayer object, populated when the AnnotationLayer is loaded. They cannot exist separately. Annotation sublayers offer finer control over your annotation, allowing the author to set different visual properties from the parent annotation layer. These visual properties include font, size, color, or different minimum and maximum scale ranges.

Properties

Name Description
CanChangeVisibility

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

DefinitionExpression

Gets the Where clause of the SQL expression that defines which annotation features from the feature table are selected into this Sublayer.

IsVisible

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

MaxScale

Gets the maximum scale at which to display the Sublayer.

MinScale

Gets the minimum scale at which to display the Sublayer.

Name

Gets the title of this Annotation sublayer.

Opacity

Gets the opacity with which to display the annotation text associated with this Sublayer.

ScaleSymbols

Gets a value indicating whether the annotation text scales with the MapView.

ShowInLegend

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

SublayerContents

Gets a read-only collection of ILayerContent for this sublayer.

SublayerId

Gets a non-negative number representing Id of the AnnotationSublayer within its AnnotationLayer.

Methods

Name Description
GetLegendInfosAsync()

Asynchronously retrieves a read-only list of LegendInfo objects.

IsVisibleAtScale(Double)

Retrieves the sublayer's visibility at the specified scale.

Name Description
INotifyPropertyChanged.PropertyChanged

Occurs when a property value changes.

Applies to

TargetVersions
.NET Standard 2.0100.6 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.6 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.6 - 100.14
Xamarin.iOS100.6 - 100.14
UWP100.6 - 100.14

Relevant samples

Control annotation sublayer visibility: Use annotation sublayers to gain finer control of annotation layer subtypes.
In This Article
Back to top Copyright © 2021 Esri.