This document is archived and information here might be outdated.  Recommended version.


IGeoFeatureLayer.AnnotationPropertiesID Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IG > IGeoFeatureLayer Interface > IGeoFeatureLayer.AnnotationPropertiesID Property
ArcGIS Developer Help

IGeoFeatureLayer.AnnotationPropertiesID Property

The UID used for annotation properties.

[Visual Basic .NET]
Public Property AnnotationPropertiesID As UID
[C#]
public UID AnnotationPropertiesID {get; set;}
[C++]
HRESULT get_AnnotationPropertiesID(
  IUID** uid
);
[C++]
HRESULT putref_AnnotationPropertiesID(
  IUID* uid
);
[C++]
Parameters
uid [out, retval]

uid is a parameter of type IUID** uid [in]
uid is a parameter of type IUID*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Indicates the CLSID of the labeling properties used to label the layer.

Remarks

ArcGIS provides two engines that can be used for labeling, the ESRI Standard Labeling Engine and the ESRI Maplex Labeling Engine.

You can use AnnotationPropertiesID determine which engine is being used by the layer to label features.

ESRI Standard Labeling Engine: GUID for LabelEngineLayerProperties = "{01004145-0D1C-11D2-A26F-080009B6F22B}"
ESRI Maplex Labeling Engine: GUID for MaplexLabelEngineLayerProperties = "{20664808-0D1C-11D2-A26F-080009B6F22B}"

You should not set this property. The labeling engine set for the map controls how each layer in the map will be labeled. To set this use IMap::AnnotationEngine.  When the label engine is changed, the label properties of the all layers in the map will automatically be changed to properties of the new label engine.

If have a standalone layer that is not in a map, you can translate the properties to the other label engine by using IAnnotationPropertiesConverter on the coclass MaplexAnnotationPropertiesConverter.

See Also

IGeoFeatureLayer Interface