This document is archived and information here might be outdated. Recommended version. |
Provides access to members that control a collection of dimension styles for a dimension feature class.
The IDimensionStyles interface provides methods and properties for managing DimensionStyle objects.
Name | Description | |
---|---|---|
AddStyle | Adds a style to the collection. | |
DefaultStyleID | The ID of the defualt dimension style. | |
DeleteStyle | Deletes a dimension style. | |
FindStyle | Find a dimension style by name. | |
GetStyle | A dimension style. | |
GetStyles | All the dimension styles in the collection. | |
RenameStyle | Renames a dimension style. |
Classes | Description |
---|---|
DimensionStyles | A collection of DimensionStyle objects. |
In order to add a new DimensionStyle object, create a new DimensionStyle, modifying it, and call the Add method. When a style is added, a StyleID is automatically assigned to that Style. The DefaultStyleID property specifies which style should be used by default in ArcMap. DimensionStyle objects can be retrieved by ID or name using the GetStyle and FindStyle methods. Existing DimensionStyle objects can be renamed using the Rename method. Styles can only be deleted and not modified. If a DimensionStyle is deleted, it is important to reassign a new DimensionStyle to existing dimension features that reference the deleted style.