DimStyleTable
Inheritance Hierarchy
System.Object
Rhino.FileIO.CommonComponentTable. DimensionStyle.
Rhino.DocObjects.Tables.RhinoDocCommonTable. DimensionStyle.
Rhino.DocObjects.Tables.DimStyleTable
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)
Syntax
public sealed class DimStyleTable : RhinoDocCommonTable<DimensionStyle>, ICollection<DimensionStyle>, IEnumerable<DimensionStyle>, IEnumerable
The DimStyleTable type exposes the following members.
Properties
Name
Description
Public Property
BuiltInStyles
Creates an array of default AnnotationStyle objects
Public Property
ComponentType
Returns DimStyle.
(Overrides
CommonComponentTable.T..ComponentType
.)Public Property
Count
Returns the count of all items, including deleted ones.
(Inherited from CommonComponentTable.T..)
Public Property
Current
Returns an instance of the current DimensionStyle.
Public Property
CurrentDimensionStyle
Obsolete.
Do not use. Use the
Current
property.Public Property
CurrentId
Public Property
Code Example
CurrentIndex
Public Property
Document
Document that owns this table.
(Inherited from RhinoDocCommonTable.T..)
Public Property
Item
Methods
Name
Description
Public Method
Add(String)
Adds a new AnnotationStyle to the document. The new AnnotationStyle will be initialized with the current default AnnotationStyle properties.
Public Method
Add(DimensionStyle, Boolean)
Adds a new DimensionStyle to the document.
Public Method
Add(String, Boolean)
Adds a new AnnotationStyle to the document. The new AnnotationStyle will be initialized with the current default AnnotationStyle properties.
Public Method
Clear
Marks all items as deleted.
(Inherited from CommonComponentTable.T..)
Public Method
Delete(DimensionStyle)
Removes an annotation style.
(Overrides
CommonComponentTable.T..Delete(T)
.)Public Method
Delete(Int32, Boolean)
Public Method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public Method
Find(Guid, Boolean)
Public Method
Find(String, Boolean)
Obsolete.
Public Method
FindId
Uses the guid to find a model component. Deleted objects cannot be found by id. The guid is the value that is stored in the .Id property. In a single document, no two active objects have the same guid. If an object is replaced with a new object, then the guid persists. For example, if the _Move command moves an object, then the moved object inherits its guid from the starting object. If the Copy command copies an object, then the copy gets a new guid. This guid persists through file saving/opening operations. This function will not find grip objects.
(Inherited from CommonComponentTable.T..)
Public Method
FindIndex
Retrieves a DimensionStyle object based on Index. This search type of search is discouraged. We are moving towards using only IDs for all tables.
Public Method
FindName
Finds the DimensionStyle with a given name and returns it. None is returned if no DimensionStyle is found.
Public Method
FindRoot
Public Method
GetEnumerator
(Overrides
CommonComponentTable.T..GetEnumerator.
.)Public Method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public Method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public Method
GetUnusedStyleName.
Get a unique name for a style that does not already exist in the DimStyle table
Public Method
GetUnusedStyleName(String)
Get a unique name for a dimension style that does not already exist in the DimStyle table
Public Method
Modify(DimensionStyle, AnnotationBase)
Public Method
Modify(DimensionStyle, Guid, Boolean)
Modifies dimension style settings.
Public Method
Modify(DimensionStyle, Int32, Boolean)
Modifies dimension style settings.
Public Method
SetCurrent
Sets the
Current
property.Public Method
SetCurrentDimensionStyleIndex
Obsolete.
Do not use. Use the
SetCurrent(Int32, Boolean)
method.Public Method
ToString
Returns a string that represents the current object.
(Inherited from Object.)