Class MLineVertex
Represents a MLine vertex.
Inheritance
Inherited Members
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class MLineVertex
Properties
| Improve this Doc View SourceDirection
Gets the MLine vertex direction.
Declaration
public Vector2 Direction { get; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
Distances
Gets the MLine vertex distances lists.
Declaration
public List<double>[] Distances { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.List<System.Double>[] |
Remarks
There is a list for every MLineStyle element, and every list contains an array of real values that parametrize the start and end point of every element of the style.
The first value (index 0) represents the distance from the segment vertex along the miter vector to the
point where the line element's path intersects the miter vector.
The second value (index 1) is the distance along the line element's direction from the point,
defined by the first value, to the actual start of the line element.
The successive values list the start and stop points of the line element breaks or cuts in this segment of the multiline.
Miter
Gets the MLine vertex miter.
Declaration
public Vector2 Miter { get; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
Position
Gets the MLine vertex position.
Declaration
public Vector2 Position { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
Remarks
If this property is modified the function MLine.CalculateVertexesInfo() will need to be called manually to update the internal information.
Methods
| Improve this Doc View SourceClone()
Creates a new MLineVertex that is a copy of the current instance.
Declaration
public object Clone()
Returns
| Type | Description |
|---|---|
| System.Object | A new MLineVertex that is a copy of this instance. |
ToString()
Converts the value of this instance to its equivalent string representation.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | The string representation. |