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) Version: 5.1.50000.0 (5.0.20693.0)
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 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 methodDelete(IEnumerableInt32, Boolean)
Deletes multiple linetypes.
Public methodDelete(Int32, Boolean)
Deletes linetype.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFind(Guid, Boolean)
Finds a linetype with a matching ID.
Public methodFind(String, Boolean)
Finds the linetype with a given name.
Public methodGetEnumerator
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUnusedLinetypeName
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 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
Returns a string that represents the current object.
(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
See Also