ArcObjects Library Reference (Carto)  

IConvertLabelsToAnnotation.Initialize Method

Call this method first to initialize the converter.

[Visual Basic .NET]
Public Sub Initialize ( _
    ByVal pMap As IMap, _
    ByVal storageType As esriAnnotationStorageType, _
    ByVal whichFeatures As esriLabelWhichFeatures, _
    ByVal generateUnplacedAnnotation As Boolean, _
    ByVal pTrackCancel As ITrackCancel, _
    [ByVal pAnnotationErrorEvents As IAnnotationErrorEvents] _
)
[C#]
public void Initialize (
    IMap pMap,
    esriAnnotationStorageType storageType,
    esriLabelWhichFeatures whichFeatures,
    bool generateUnplacedAnnotation,
    ITrackCancel pTrackCancel,
    IAnnotationErrorEvents pAnnotationErrorEvents
);
[C++]
HRESULT Initialize(
  IMap* pMap,
  esriAnnotationStorageType storageType,
  esriLabelWhichFeatures whichFeatures,
  VARIANT_BOOL generateUnplacedAnnotation,
  ITrackCancel* pTrackCancel,
  IAnnotationErrorEvents* pAnnotationErrorEvents
);
[C++]

Parameters

pMap [in]

  pMap is a parameter of type IMap

storageType [in]

  storageType is a parameter of type esriAnnotationStorageType

whichFeatures [in]

  whichFeatures is a parameter of type esriLabelWhichFeatures

generateUnplacedAnnotation [in]   generateUnplacedAnnotation is a parameter of type VARIANT_BOOL pTrackCancel [in]

  pTrackCancel is a parameter of type ITrackCancel

pAnnotationErrorEvents [in, optional, defaultvalue(0)]

  pAnnotationErrorEvents is a parameter of type IAnnotationErrorEvents

Product Availability

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

Remarks

This method initializes the conversion object with the global parameters for conversion.  It is the first method that should be called when using the ConvertLabelsToAnnotation object.  The initialization has the following inputs:

See Also

IConvertLabelsToAnnotation Interface

.NET Related Topics

Converting labels to geodatabase annotation for a single layer | Converting labels to geodatabase annotation for an entire map | Converting labels to map annotation for a single layer |