LineType Class

LineType class. The pattern defines pen-up lengths (spaces), pen-down lengths (dashes), and dots. A pattern specifies the length of segments that make up the linetype. A positive decimal number specifies a pen-down (dash) segment of that length. A negative decimal number specifies a pen-up (space) segment of that length. Zero specifies a dot. For example, the DASHDOT linetype is defined by a repeating pattern starting with a dash 0.5 drawing units long, a space 0.25 drawing units long, a dot, and another space 0.25 drawing units long.
Public Class LineType 
Implements ICloneable, _ 
IKeyedCollectionItem(Of LineType)
This language is not supported or no code example is available.
public class LineType : ICloneable
IKeyedCollectionItem<LineType>
This language is not supported or no code example is available.
Name Description
Public constructor LineType(float[], string) Obsolete. Standard constructor.
Public constructor LineType(LineType)
Public constructor LineType(SerializationInfo, StreamingContext) Constructor for deserializing objects.
Public constructor LineType(string, float[], string) Standard constructor.
Top
Name Description
Public property Description Gets or sets the line type description.
Public property Length Gets the length of the line type pattern.
Public property Name Gets or sets line type name.
Public property Pattern Gets the line type pattern.
Top
Methods
 
Name Description
Public method Static CheckPattern(float[], bool, out float) Checks if the pattern has: more than one value, alternate sign for penDown/penUp or values are not all zero.
Public method Clone()
Public method ConvertToSurrogate()
Public method Equals(LineType) Compares line type names ignoring cases.
Protected method Finalize (inherited from Object).
Public method GetHashCode()
Public method GetKey()
Public method GetObjectData(SerializationInfo, StreamingContext) Populates a SerializationInfo instance with the data needed to serialize the target object.
Public method GetPatternVertices(int, Point3D[], float, out List<Point3D>, out List<Point3D>, Transformation) Computes the pattern from the given vertices and returns the lines and points that represent it.
Internal protected (Protected Friend) method Static GetPenDowns(Segment3D, float[], float, out Segment3D[], ref int, ref double)
Public method GetType (inherited from Object).
Protected method MemberwiseClone (inherited from Object).
Protected method OnKeyChanged(string, string) When the Name changes I need to notify it to the related keyed collections before changing it.
Public method SetKey(string)
Public method ToString()
Top
Events
 
Name Description
Public event KeyChanged Occurs when the Name changes.
Top
Remarks
 
When the line type used by entities already added to the Workspace is changed, their Entity.RegenMode must be set to regenType.CompileOnly and the EntityList.Regen must be called.

.NET Framework

Supported in: 4.7.2

In this article

Definition