LinePattern Class

LinePattern 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 LinePattern 
Implements ICloneable, _ 
IKeyedCollectionItem(Of LinePattern)
This language is not supported or no code example is available.
public class LinePattern : ICloneable
IKeyedCollectionItem<LinePattern>
This language is not supported or no code example is available.
Name Description
Public constructor LinePattern(float[], string) Obsolete. Standard constructor.
Public constructor LinePattern(LinePattern)
Public constructor LinePattern(SerializationInfo, StreamingContext) Constructor for deserializing objects.
Public constructor LinePattern(string, float[], string) Standard constructor.
Top
Name Description
Public property Description Gets or sets the line pattern description.
Public property Length Gets the length of the line type pattern.
Public property Name Gets or sets line pattern 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(Object) Determines whether the specified object is equal to the current object. (System.Object).
Public method Equals(LinePattern) Compares line pattern names ignoring cases.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (inherited from Object).
Public method GetHashCode()
Public method GetKey() Gets the key for the item of the collection.
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>) Computes the pattern from the given vertices and returns the lines and points that represent it.
Protected method Static GetPenDowns(Segment3D, float[], float, out Segment3D[], ref int, ref double)
Public method GetType Gets the Type of the current instance. (inherited from Object).
Protected method MemberwiseClone Creates a shallow copy of the current Object. (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) Sets the key for the item of the collection.
Public method ToString()
Top
Events
 
Name Description
Public event KeyChanged
Top
Remarks
 
When the line pattern used by entities already added to the Environment.Entities is changed, their Entity.RegenMode must be set to regenType.CompileOnly and the EntityList.Regen must be called.
devDept.Eyeshot.LinePattern

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition