Class AnnotationSublayer
Allows you to interrogate the properties of a sublayer within an AnnotationLayer and to change the visibility of the sublayer.
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 |
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.6 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.6 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.6 - 100.15 |
Xamarin.iOS | 100.6 - 100.15 |
UWP | 100.6 - 100.15 |