Provides access to creating an annotation class as well as managing a symbol collection.
Members
Name | Description | |
---|---|---|
AddSymbolCollection | Updates the symbol collection in the class extension. | |
CreateAnnotationClass | Creates a new annotation feature class in the workspace. | |
ReplaceSymbolCollection | Replaces the symbol collection in the class extension. |
IFeatureWorkspaceAnno.AddSymbolCollection Method
Updates the symbol collection in the class extension.
Public Sub AddSymbolCollection ( _
ByVal Name As String, _
ByVal symbolCollection As Object _
)
public void AddSymbolCollection (
string Name,
object symbolCollection
);
Remarks
The AddSymbolCollectionand ReplaceSymbolCollectionmay be used to augment and replace the symbol collection associated with an annotation feature class. Use extreme caution when using these methods--be aware that there may be existing annotation features in the annotation feature class that have annotation elements that may reference symbols by ID. Deleting the symbol for such an ID or replacing it with a different symbol may leave the geometry of the annotation feature out of phase with its symbol, resulting in subsequent problems during drawing and selection. These methods are for use by specialized data loaders that can guarantee the integrity of referenced symbols.
IFeatureWorkspaceAnno.CreateAnnotationClass Method
Creates a new annotation feature class in the workspace.
Public Function CreateAnnotationClass ( _
ByVal Name As String, _
ByVal Fields As IFields, _
ByVal CLSID As UID, _
ByVal EXTCLSID As UID, _
ByVal ShapeFieldName As String, _
ByVal ConfigKeyword As String, _
ByVal dstFeatureDataset As IFeatureDataset, _
ByVal srcFeatureClass As IFeatureClass, _
ByVal annoProperties As Object, _
ByVal referenceScale As Object, _
ByVal symbolCollection As Object, _
ByVal autoCreate As Boolean _
) As IFeatureClass
public IFeatureClass CreateAnnotationClass (
string Name,
IFields Fields,
UID CLSID,
UID EXTCLSID,
string ShapeFieldName,
string ConfigKeyword,
IFeatureDataset dstFeatureDataset,
IFeatureClass srcFeatureClass,
object annoProperties,
object referenceScale,
object symbolCollection,
bool autoCreate
);
Remarks
The CreateAnnotationClassmethod creates a new annotation feature class that may or may not be feature linked via a relationship class to features in a source feature class (the feature class being annotated).
The CLSIDproperty must be set to esriCarto.AnnotationFeatureand the EXTCLSIDproperty must be set to esriCarto.AnnotationFeatureClassExtension. The srcFeatureClassparameter specifies the source feature class and may be set to 0 or Nothing for non-feature linked annotation.
The AnnoPropertiesparameter specifies the labeling properties to be used for the annotation, and must support the IAnnotateLayerPropertiesCollectioninterface. The ReferenceScaleparameter specifies the reference scale to be used for the annotation. The SymbolCollectionparameter specifies the symbols that will be referenced by the annotation elements for the annotation features in this feature class and must support the ISymbolCollectioninterface.
The autoCreateparameter applies to feature-linked annotation; setting it to True results in a new annotation feature being automatically created when a new feature in the source feature class is created.
IFeatureWorkspaceAnno.ReplaceSymbolCollection Method
Replaces the symbol collection in the class extension.
Public Sub ReplaceSymbolCollection ( _
ByVal Name As String, _
ByVal symbolCollection As Object _
)
public void ReplaceSymbolCollection (
string Name,
object symbolCollection
);
Remarks
The AddSymbolCollectionand ReplaceSymbolCollectionmay be used to augment and replace the symbol collection associated with an annotation feature class. Use extreme caution when using these methods--be aware that there may be existing annotation features in the annotation feature class that have annotation elements that may reference symbols by ID. Deleting the symbol for such an ID or replacing it with a different symbol may leave the geometry of the annotation feature out of phase with its symbol, resulting in subsequent problems during drawing and selection. These methods are for use by specialized data loaders that can guarantee the integrity of referenced symbols.
Classes that implement IFeatureWorkspaceAnno
Classes | Description |
---|---|
Workspace | Workspace Object. |
Remarks
IFeatureWorkspaceAnnois an optional interface supported by workspaces that represent geodatabases and contains specialized methods for creating geodatabase annotation feature classes.