This document is archived and information here might be outdated.  Recommended version.


IDimensionStyles Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > ID > IDimensionStyles Interface
ArcGIS Developer Help

IDimensionStyles Interface

Provides access to members that control a collection of dimension styles for a dimension feature class.

Product Availability

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

Description

The IDimensionStyles interface provides methods and properties for managing DimensionStyle objects.

Members

Name Description
Method AddStyle Adds a style to the collection.
Read/write property DefaultStyleID The ID of the defualt dimension style.
Method DeleteStyle Deletes a dimension style.
Method FindStyle Find a dimension style by name.
Method GetStyle A dimension style.
Method GetStyles All the dimension styles in the collection.
Method RenameStyle Renames a dimension style.

Classes that implement IDimensionStyles

Classes Description
DimensionStyles A collection of DimensionStyle objects.

Remarks

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.

See Also

IDimensionStyle Interface | IEnumDimensionStyle Interface