ArcObjects Library Reference (Carto)  

IConvertLabelsToAnnotation Interface

Provides access to the properties that control the conversion of labels to annotation.

Product Availability

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

Members

Description
Method AddFeatureLayer Call this method for each feature layer be converted to annotation.
Read-only property AnnoLayers New database annotation layers created by the conversion process.
Method ConvertLabels Convert labels to annotation.
Read-only property ErrorInfo Error information generated by the conversion process.
Method Initialize Call this method first to initialize the converter.

CoClasses that implement IConvertLabelsToAnnotation

CoClasses and Classes Description
ConvertLabelsToAnnotation An Esri convert labels to annotation helper class.

Remarks

IConvertLabelsToAnnotation provides access to the methods and properties of the ConvertLabelsToAnnotation object.  ConvertLabelsToAnnotation is a coarse grained object that performs the steps needed to convert labels to annotation.  To perform a conversion, follow these steps:

  1. Initialize the conversion object.  See the Initialize method for more information on what each parameter specifies.
  2. Next, add each layer from the map you wish to convert labels to annotation for.  See the AddFeatureLayer method for more information on what each parameter specifies.
  3. Next, perform the conversion by calling the ConvertLabels method.
  4. Following the conversion, retrieve populated geodatabase annotation layers from the object via the AnnoLayers property.  Map annotation layers are added to the map automatically and will not be included in the enumeration.
  5. Finally, any error information can be retrieved via the ErrorInfo property.