# DimStyleTable class

Namespace: [Rhino.DocObjects.Tables](https://developer.rhino3d.com/api/rhinocommon/namespace/rhino.docobjects.tables.md) · Assembly: [RhinoCommon](https://developer.rhino3d.com/api/rhinocommon/assembly/rhinocommon.md)

```cs
public sealed class DimStyleTable : RhinoDocCommonTable<DimensionStyle>, ICollection<DimensionStyle>
```

## Properties

- [BuiltInStyles](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/builtinstyles.md): Creates an array of default DimensionStyle objects
- [ComponentType](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/componenttype.md): Returns [ModelComponentType.DimStyle](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.modelcomponenttype.md).
- [Current](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/current.md): Returns an instance of the current [DimensionStyle](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.dimensionstyle.md).
- [CurrentDimensionStyle](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/currentdimensionstyle.md): (obsolete) Do not use. Use the [DimStyleTable.Current](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/current.md) property.
- [CurrentId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/currentid.md)
- [CurrentIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/currentindex.md)

## Indexers

- [this[]](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/item.md)

## Methods

- [Add](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/add.md): (3 overloads) Adds a new DimensionStyle to the document.
- [Delete](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/delete.md): (2 overloads) Removes an annotation style.
- [Find](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/find.md): (2 overloads)
- [FindIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/findindex.md): Retrieves a DimensionStyle object based on Index. This search type of search is discouraged. We are moving towards using only IDs for all tables.
- [FindName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/findname.md): Finds the DimensionStyle with a given name and returns it. None is returned if no DimensionStyle is found.
- [FindRoot](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/findroot.md)
- [GetEnumerator](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/getenumerator.md)
- [GetUnusedStyleName](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/getunusedstylename.md): (2 overloads) Get a unique name for a style that does not already exist in the DimStyle table
- [Modify](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/modify.md): (3 overloads) Modifies dimension style settings.
- [PurgeUnused](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/purgeunused.md): Purges any unused dimension styles.
- [SetCurrent](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/setcurrent.md): Sets the [DimStyleTable.Current](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/current.md) property.
- [SetCurrentDimensionStyleIndex](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/setcurrentdimensionstyleindex.md): (obsolete) Do not use. Use the [DimStyleTable.SetCurrent(int, bool)](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/setcurrent.md) method.
- [ICollection<DimensionStyle>.Add](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.dimstyletable/system-collections-generic-icollection-rhino-docobjects-dimensionstyle-add.md)

## Inherited Members

- From [RhinoDocCommonTable<T>](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.rhinodoccommontable-1.md): [Document](https://developer.rhino3d.com/api/rhinocommon/type/rhino.docobjects.tables.rhinodoccommontable-1/document.md)
- From [CommonComponentTable<T>](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1.md): [Count](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/count.md), [Clear](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/clear.md), [FindId](https://developer.rhino3d.com/api/rhinocommon/type/rhino.fileio.commoncomponenttable-1/findid.md)
