Creates a new annotation feature class and returns a layer for it.
[Visual Basic .NET] Public Function CreateAnnotationLayer ( _ ByVal Workspace As IFeatureWorkspace, _ ByVal FeatureDataset As IFeatureDataset, _ ByVal annotationClassName As String, _ ByVal pGeometryDef As IGeometryDef, _ ByVal pAssociatedFeatureClass As IFeatureClass, _ ByVal annoLayerProps As IAnnotateLayerPropertiesCollection, _ ByVal ReferenceScale As IGraphicsLayerScale, _ ByVal SymbolCollection As ISymbolCollection, _ ByVal AutoCreate As Boolean, _ ByVal UpdateOnShapeChange As Boolean, _ ByVal RequireSymbolID As Boolean, _ ByVal AllowSymbolOverrides As Boolean, _ ByVal OverposterProperties As IOverposterProperties, _ ByVal configKeyword As String _ ) As IAnnotationLayer
[C#] public IAnnotationLayer CreateAnnotationLayer ( IFeatureWorkspace Workspace, IFeatureDataset FeatureDataset, string annotationClassName, IGeometryDef pGeometryDef, IFeatureClass pAssociatedFeatureClass, IAnnotateLayerPropertiesCollection annoLayerProps, IGraphicsLayerScale ReferenceScale, ISymbolCollection SymbolCollection, bool AutoCreate, bool UpdateOnShapeChange, bool RequireSymbolID, bool AllowSymbolOverrides, IOverposterProperties OverposterProperties, string configKeyword );
[C++]
HRESULT CreateAnnotationLayer(
IFeatureWorkspace* Workspace,
IFeatureDataset* FeatureDataset,
BSTR annotationClassName,
IGeometryDef* pGeometryDef,
IFeatureClass* pAssociatedFeatureClass,
IAnnotateLayerPropertiesCollection* annoLayerProps,
IGraphicsLayerScale* ReferenceScale,
ISymbolCollection* SymbolCollection,
VARIANT_BOOL AutoCreate,
VARIANT_BOOL UpdateOnShapeChange,
VARIANT_BOOL RequireSymbolID,
VARIANT_BOOL AllowSymbolOverrides,
IOverposterProperties* OverposterProperties,
BSTR configKeyword,
IAnnotationLayer** Layer
);
[C++]Parameters
Workspace [in]Workspace is a parameter of type IFeatureWorkspace
FeatureDataset [in]FeatureDataset is a parameter of type IFeatureDataset
annotationClassName [in] annotationClassName is a parameter of type BSTR pGeometryDef [in]pGeometryDef is a parameter of type IGeometryDef
pAssociatedFeatureClass [in]pAssociatedFeatureClass is a parameter of type IFeatureClass
annoLayerProps [in]annoLayerProps is a parameter of type IAnnotateLayerPropertiesCollection
ReferenceScale [in]ReferenceScale is a parameter of type IGraphicsLayerScale
SymbolCollection [in]SymbolCollection is a parameter of type ISymbolCollection
AutoCreate [in] AutoCreate is a parameter of type VARIANT_BOOL UpdateOnShapeChange [in] UpdateOnShapeChange is a parameter of type VARIANT_BOOL RequireSymbolID [in] RequireSymbolID is a parameter of type VARIANT_BOOL AllowSymbolOverrides [in] AllowSymbolOverrides is a parameter of type VARIANT_BOOL OverposterProperties [in]OverposterProperties is a parameter of type IOverposterProperties
configKeyword [in] configKeyword is a parameter of type BSTR Layer [out, retval]Layer is a parameter of type IAnnotationLayer
Product Availability
Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.