This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IC > IConvertLabelsToAnnotation Interface > IConvertLabelsToAnnotation.AddFeatureLayer Method (ArcObjects .NET 10.4 SDK) |
Call this method for each feature layer be converted to annotation.
[Visual Basic .NET] Public Sub AddFeatureLayer ( _ ByVal pFeatureLayer As IFeatureLayer, _ ByVal annoLayerName As String, _ [ByVal pFeatureWorkspace As IFeatureWorkspace], _ [ByVal pFeatureDataset As IFeatureDataset], _ [ByVal FeatureLinked As Boolean], _ [ByVal appendMode As Boolean], _ [ByVal RequireSymbolID As Boolean], _ [ByVal AutoCreate As Boolean], _ [ByVal autoUpdate As Boolean], _ [ByVal configKeyword As String] _ )
[C#] public void AddFeatureLayer ( IFeatureLayer pFeatureLayer, string annoLayerName, IFeatureWorkspace pFeatureWorkspace, IFeatureDataset pFeatureDataset, bool FeatureLinked, bool appendMode, bool RequireSymbolID, bool AutoCreate, bool autoUpdate, string configKeyword );
Optional Values
[C++]
HRESULT AddFeatureLayer(
IFeatureLayer* pFeatureLayer,
BSTR annoLayerName,
IFeatureWorkspace* pFeatureWorkspace,
IFeatureDataset* pFeatureDataset,
VARIANT_BOOL FeatureLinked,
VARIANT_BOOL appendMode,
VARIANT_BOOL RequireSymbolID,
VARIANT_BOOL AutoCreate,
VARIANT_BOOL autoUpdate,
BSTR configKeyword
);
[C++]
Parameters pFeatureLayer [in]
pFeatureLayer is a parameter of type IFeatureLayer annoLayerName [in] annoLayerName is a parameter of type BSTR pFeatureWorkspace [in, optional, defaultvalue(0)]
pFeatureWorkspace is a parameter of type IFeatureWorkspace pFeatureDataset [in, optional, defaultvalue(0)]
pFeatureDataset is a parameter of type IFeatureDataset FeatureLinked [in, optional, defaultvalue(VARIANT_FALSE)] FeatureLinked is a parameter of type VARIANT_BOOL appendMode [in, optional, defaultvalue(VARIANT_FALSE)] appendMode is a parameter of type VARIANT_BOOL RequireSymbolID [in, optional, defaultvalue(VARIANT_FALSE)] RequireSymbolID is a parameter of type VARIANT_BOOL AutoCreate [in, optional, defaultvalue(VARIANT_FALSE)] AutoCreate is a parameter of type VARIANT_BOOL autoUpdate [in, optional, defaultvalue(VARIANT_FALSE)] autoUpdate is a parameter of type VARIANT_BOOL configKeyword [in, optional, defaultvalue()] configKeyword is a parameter of type BSTR
This method adds a layer to the list of layers for which labels will be converted into annotation. Initialize should be called on the ConvertLabelsToAnnotation object before calling this method. This method may be called multiple times for one conversion when more that one layer will be converted.
Depending on the storage type chosen in initialize, some of the input parameters are optional. For map annotation, input the following items:
~ A reference to the feature layer the labels will be converted fromAppend Mode:
If appendMode is True, the converter will look for the provided annotation class name in the specified workspace/feature dataset and convert labels to annotation features in that feature class. Append mode also performs additional logic to match existing annotation classes in the feature class with label classes being converted. If the classes match, they will be used rather than added to the annotation feature class extensions properties collection. If updates to the class extension are needed, an exclusive schema lock is required and an attempt will be made to obtain one.
If appendMode is false, a new annotation feature class will be created in specified workspace and feature dataset with the specified name and parameters as listed above.