Class GeoLine
A Geometric line. This line is different than a line that is inheriting the entity class. This line should only be used for geometric purposes
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: Dxflib.Geometry
Assembly: Dxflib.dll
Syntax
public class GeoLine : GeoBase, INotifyPropertyChanged, IGeoLinear
Constructors
| Improve this Doc View SourceGeoLine(Vertex, Vertex)
Main Constructor of the GeoLine
Declaration
public GeoLine(Vertex v0, Vertex v1)
Parameters
Type | Name | Description |
---|---|---|
Vertex | v0 | The First Vertex |
Vertex | v1 | The Second Vertex |
Properties
| Improve this Doc View SourceArea
The Area of the GeoLine
Declaration
public double Area { get; }
Property Value
Type | Description |
---|---|
System.Double |
Length
The total length of the polyline.
Declaration
public double Length { get; }
Property Value
Type | Description |
---|---|
System.Double |
Vertex0
The first Vertex. Note that when setting this property a GeometryChanged event will be broadcast. Also changing this property will cause an update Geometry method to happen.
Declaration
public Vertex Vertex0 { get; set; }
Property Value
Type | Description |
---|---|
Vertex |
Vertex1
The same as Vertex0. Just the second vertex.
Declaration
public Vertex Vertex1 { get; set; }
Property Value
Type | Description |
---|---|
Vertex |
Methods
| Improve this Doc View SourceOnPropertyChanged(String)
Update the Geometry Before the change
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName |
Overrides
| Improve this Doc View SourceToVector()
Convert this Geoline to a Vector
Declaration
public Vector ToVector()
Returns
Type | Description |
---|---|
Vector | A new Vector |
UpdateGeometry(String)
Update the Geometry After Property Change
Declaration
protected override void UpdateGeometry(string command)
Parameters
Type | Name | Description |
---|---|---|
System.String | command |
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged