RhinoCommon API
LinetypeTable Class |
[Missing <summary> documentation for "T:Rhino.DocObjects.Tables.LinetypeTable"]

SystemObject
Rhino.FileIOCommonComponentTableLinetype
Rhino.DocObjects.TablesRhinoDocCommonTableLinetype
Rhino.DocObjects.TablesLinetypeTable
Rhino.FileIOCommonComponentTableLinetype
Rhino.DocObjects.TablesRhinoDocCommonTableLinetype
Rhino.DocObjects.TablesLinetypeTable
Namespace: Rhino.DocObjects.Tables
Assembly: RhinoCommon (in RhinoCommon.dll)

The LinetypeTable type exposes the following members.

Name | Description | |
---|---|---|
![]() | ActiveCount |
Returns number of linetypes in the linetypes table, excluding deleted linetypes.
|
![]() | ByLayerLinetypeName |
Returns the text name of the by-layer linetype.
|
![]() | ByParentLinetypeName |
Returns the text name of the by-parent linetype.
|
![]() | ComponentType | (Overrides CommonComponentTableTComponentType.) |
![]() | ContinuousLinetypeName |
Returns the text name of the continuous linetype.
|
![]() | Count |
Returns number of linetypes in the linetypes table, including deleted linetypes.
|
![]() | CurrentLinetype |
Returns reference to the current linetype. Note that this reference may
become invalid after a call to AddLinetype().
|
![]() | CurrentLinetypeIndex |
At all times, there is a "current" linetype. Unless otherwise specified,
new objects are assigned to the current linetype. If the current linetype
source is LinetypeFromLayer the object's layer's linetype is used instead.
|
![]() | CurrentLinetypeSource |
Source used by an object to determine its current linetype to be used by new objects.
|
![]() | Document | Document that owns this table. |
![]() | Item |
Conceptually, the linetype table is an array of linetypes.
The operator[] can be used to get individual linetypes. A linetype is
either active or deleted and this state is reported by Linetype.IsDeleted.
|
![]() | LinetypeScale |
For display in Rhino viewports, the linetypes are scaled by a single scale
factor for all viewports. This is not used for printing, where all linetype
patterns are scaled to print in their defined size 1:1 on the paper.
|

Name | Description | |
---|---|---|
![]() | Add(Linetype) |
Adds a new linetype with specified definition to the linetype table.
|
![]() | Add(String, IEnumerableDouble) |
Adds a new linetype with specified definition to the linetype table.
|
![]() | AddReferenceLinetype |
Adds a reference linetypes that will not be saved in files.
|
![]() | Clear |
Marks all items as deleted.
(Inherited from CommonComponentTableT.) |
![]() | Delete(Linetype) | (Overrides CommonComponentTableTDelete(T).) |
![]() | Delete(IEnumerableInt32, Boolean) | Deletes multiple linetypes. |
![]() | Delete(Int32, Boolean) | Deletes linetype. |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Find(String) | Finds the linetype with a given name. |
![]() | Find(Guid, Boolean) | Finds a linetype with a matching ID. |
![]() | 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 CommonComponentTableT.) |
![]() | FindIndex |
Retrieves a Linetype object based on Index. This search type of search is discouraged.
We are moving towards using only IDs for all tables.
|
![]() | FindName | Finds the linetype with a given name. |
![]() | GetEnumerator | (Overrides CommonComponentTableTGetEnumerator.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetUnusedLinetypeName |
Gets unused linetype name used as default when creating new linetypes.
|
![]() | GetUnusedLinetypeName(Boolean) | Obsolete.
Obsolete. Use the other overload. Gets unused linetype name used as default when creating new linetypes.
|
![]() | LinetypeIndexForObject |
Returns the effective linetype index to be used to find the
linetype definition to draw an object. If an object's linetype
source is LinetypeFromObject, the linetype index in the object's
attributes is used. If an object's linetype source is LinetypeFromLayer
the linetype index from the object's layer is used.
|
![]() | LoadDefaultLinetypes |
Fills in the linetype table with any default linetypes not already included.
|
![]() | Modify | Modify linetype settings. |
![]() | SetCurrentLinetypeIndex |
At all times, there is a "current" linetype. Unless otherwise specified, new objects
are assigned to the current linetype. The current linetype is never deleted.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Undelete | Restores a linetype that has been deleted. |
![]() | UndoModify |
If the linetype has been modified and the modification can be undone,
then UndoModify() will restore the linetype to its previous state.
|
