Class LinetypeSegment
Base class for the three kinds of linetype segments simple, text, and shape.
Inheritance
System.Object
LinetypeSegment
Implements
System.ICloneable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: netDxf.Tables
Assembly: CADability.dll
Syntax
public abstract class LinetypeSegment : ICloneable
Constructors
| Improve this Doc View SourceLinetypeSegment(LinetypeSegmentType, Double)
Initializes a new instance of the LinetypeSegment class.
Declaration
protected LinetypeSegment(LinetypeSegmentType type, double length)
Parameters
| Type | Name | Description |
|---|---|---|
| LinetypeSegmentType | type | Type of the linetype segment. |
| System.Double | length | Dash or space length of the segment. |
Properties
| Improve this Doc View SourceLength
Gets or sets the dash, dot or space length.
Declaration
public double Length { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Remarks
A positive decimal number denotes a pen-down (dash) segment of that length. A negative decimal number denotes a pen-up (space) segment of that length. A dash length of 0 draws a dot.
Type
Gets the linetype segment simple, text, or shape.
Declaration
public LinetypeSegmentType Type { get; }
Property Value
| Type | Description |
|---|---|
| LinetypeSegmentType |
Methods
| Improve this Doc View SourceClone()
Creates a new LinetypeSegment that is a copy of the current instance.
Declaration
public abstract object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new |
Implements
System.ICloneable