LinetypeTable Class

LinetypeTable Class

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

Inheritance Hierarchy

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public sealed class LinetypeTable : RhinoDocCommonTable<Linetype>, 
	ICollection<Linetype>, IEnumerable<Linetype>, IEnumerable
Public NotInheritable Class LinetypeTable
	Inherits RhinoDocCommonTable(Of Linetype)
	Implements ICollection(Of Linetype), IEnumerable(Of 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 by-layer linetype.
Public propertyByParentLinetypeName
Returns the text name of the by-parent 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
Determines whether the specified object is equal to the current object.
(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 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/opening operations. This function will not find grip objects.
(Inherited from CommonComponentTableT.)
Public methodFindIndex
Retrieves a Linetype object based on Index. This search 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 (Overrides CommonComponentTableTGetEnumerator.)
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 methodGetUnusedLinetypeName(Boolean) Obsolete.
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
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 modification can be undone, then UndoModify() will restore the linetype to its previous state.
Top
See Also