|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDimensionStyles
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.
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.
Method Summary | |
---|---|
void |
addStyle(IDimensionStyle style)
Adds a style to the collection. |
void |
deleteStyle(int iD)
Deletes a dimension style. |
IDimensionStyle |
findStyle(String name)
Find a dimension style by name. |
int |
getDefaultStyleID()
The ID of the defualt dimension style. |
IDimensionStyle |
getStyle(int iD)
A dimension style. |
IEnumDimensionStyle |
getStyles()
All the dimension styles in the collection. |
void |
renameStyle(int iD,
String name)
Renames a dimension style. |
void |
setDefaultStyleID(int iD)
The ID of the defualt dimension style. |
Method Detail |
---|
void addStyle(IDimensionStyle style) throws IOException, AutomationException
style
- A reference to a com.esri.arcgis.carto.IDimensionStyle (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IDimensionStyle getStyle(int iD) throws IOException, AutomationException
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IDimensionStyle findStyle(String name) throws IOException, AutomationException
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumDimensionStyle getStyles() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getDefaultStyleID() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setDefaultStyleID(int iD) throws IOException, AutomationException
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void deleteStyle(int iD) throws IOException, AutomationException
iD
- The iD (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void renameStyle(int iD, String name) throws IOException, AutomationException
iD
- The iD (in)name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |