Click or drag to resize

LinetypeTable Class

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

Inheritance Hierarchy
SystemObject
  Rhino.DocObjects.TablesLinetypeTable

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public sealed class LinetypeTable : IEnumerable<Linetype>, 
	IEnumerable

The LinetypeTable type exposes the following members.

Properties
  NameDescription
Public propertyActiveCount
Returns number of linetypes in the linetypes table, excluding deleted linetypes.
Public propertyByLayerLinetypeName
Returns the text name of the bylayer linetype.
Public propertyByParentLinetypeName
Returns the text name of the byparent linetype.
Public propertyComponentType (Overrides CommonComponentTableTComponentType.)
Public propertyContinuousLinetypeName
Returns the text name of the continuous linetype.
Public propertyCount
Returns number of linetypes in the linetypes table, including deleted linetypes.
Public propertyCurrentLinetype
Returns reference to the current linetype. Note that this reference may become invalid after a call to AddLinetype().
Public propertyCurrentLinetypeIndex
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.
Public propertyCurrentLinetypeSource
Source used by an object to determine its current linetype to be used by new objects.
Public propertyDocument
Document that owns this table.
Public propertyItem
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.
Public propertyLinetypeScale
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.
Top
Methods
  NameDescription
Public methodAdd(Linetype)
Adds a new linetype with specified definition to the linetype table.
Public methodAdd(String, IEnumerableDouble)
Adds a new linetype with specified definition to the linetype table.
Public methodAddReferenceLinetype
Adds a reference linetypes that will not be saved in files.
Public methodClear
Marks all items as deleted.
(Inherited from CommonComponentTableT.)
Public methodDelete(Linetype) (Overrides CommonComponentTableTDelete(T).)
Public methodDelete(IEnumerableInt32, Boolean)
Deletes multiple linetypes.
Public methodDelete(Int32, Boolean)
Deletes linetype.
Public methodEquals (Inherited from Object.)
Public methodFind(String)
Finds the linetype with a given name.
Public methodFind(Guid, Boolean)
Finds a linetype with a matching ID.
Public methodFind(String, Boolean)
Obsolete. Use the other overload.
Public methodFindId
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/openning operations. This function will not find grip objects.
(Inherited from CommonComponentTableT.)
Public methodFindIndex
Retrieves a Linetype object based on Index. This seach type of search is discouraged. We are moving towards using only IDs for all tables.
Public methodFindName
Finds the linetype with a given name.
Public methodGetEnumerator
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodGetUnusedLinetypeName
Gets unused linetype name used as default when creating new linetypes.
Public methodGetUnusedLinetypeName(Boolean)
Obsolete. Use the other overload. Gets unused linetype name used as default when creating new linetypes.
Public methodLinetypeIndexForObject
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.
Public methodLoadDefaultLinetypes
Fills in the linetype table with any default linetypes not already included.
Public methodModify
Modify linetype settings.
Public methodSetCurrentLinetypeIndex
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.
Public methodToString (Inherited from Object.)
Public methodUndelete
Restores a linetype that has been deleted.
Public methodUndoModify
If the linetype has been modified and the modifcation can be undone, then UndoModify() will restore the linetype to its previous state.
Top
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.6
See Also