Show / Hide Table of Contents

Constructor AnnotationLayer

AnnotationLayer(ArcGISFeatureTable)

Initializes a new instance of the AnnotationLayer class from a feature table containing annotation features.

Declaration
public AnnotationLayer(ArcGISFeatureTable featureTable)
Parameters
Type Name Description
ArcGISFeatureTable featureTable

The feature table, containing annotation features, used as the source of the annotation layer.

Remarks

If the feature table does not contain annotation data then the AnnotationLayer will fail to load. ServiceSourceType of the LayerInfo can be checked to verify the feature type, before attempting to create an AnnotationLayer.

See Also
ArcGISFeatureTable

Applies to

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

AnnotationLayer(Item, Int32)

Initializes a new instance of the AnnotationLayer class from a feature service portal item.

Declaration
public AnnotationLayer(Item item, int layerId)
Parameters
Type Name Description
Item item

A feature service item.

Int32 layerId

The layer ID for which to create the layer.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.5 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.5 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.5 - 100.15
Xamarin.iOS100.5 - 100.15
UWP100.5 - 100.15

AnnotationLayer(Uri)

Initializes a new instance of the AnnotationLayer class from a feature service URI.

Declaration
public AnnotationLayer(Uri source)
Parameters
Type Name Description
Uri source

The URI to the feature service layer.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.5 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.5 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.5 - 100.15
Xamarin.iOS100.5 - 100.15
UWP100.5 - 100.14
Relevant samples
Display annotation: Display annotation from a feature service URL.
In This Article
Back to top Copyright © 2022 Esri.