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
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.6 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.6 - 200.6 |
Xamarin.Android | 100.6 - 100.15 |
Xamarin.iOS | 100.6 - 100.15 |
UWP | 100.6 - 200.6 |
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. |
System.Int32 | layerId | The layer ID for which to create the layer. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.5 - 200.6 |
Xamarin.Android | 100.5 - 100.15 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 200.6 |
AnnotationLayer(Uri)
Initializes a new instance of the AnnotationLayer class from a feature service URI.
Declaration
public AnnotationLayer(Uri source)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | source | The URI to the feature service layer. |
Remarks
If the specified URI is not a valid ArcGIS feature service endpoint, then it will fail to load.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.5 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.5 - 200.6 |
Xamarin.Android | 100.5 - 100.14 |
Xamarin.iOS | 100.5 - 100.15 |
UWP | 100.5 - 200.6 |