Show / Hide Table of Contents

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

Inheritance
System.Object
GeoBase
GeoLine
Implements
System.ComponentModel.INotifyPropertyChanged
IGeoLinear
Inherited Members
GeoBase.GeometryEntityType
GeoBase.PropertyChanged
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 Source

GeoLine(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 Source

Area

The Area of the GeoLine

Declaration
public double Area { get; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

Length

The total length of the polyline.

Declaration
public double Length { get; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

OnPropertyChanged(String)

Update the Geometry Before the change

Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
Type Name Description
System.String propertyName
Overrides
GeoBase.OnPropertyChanged(String)
| Improve this Doc View Source

ToVector()

Convert this Geoline to a Vector

Declaration
public Vector ToVector()
Returns
Type Description
Vector

A new Vector

| Improve this Doc View Source

UpdateGeometry(String)

Update the Geometry After Property Change

Declaration
protected override void UpdateGeometry(string command)
Parameters
Type Name Description
System.String command
Overrides
GeoBase.UpdateGeometry(String)

Implements

System.ComponentModel.INotifyPropertyChanged
IGeoLinear
  • Improve this Doc
  • View Source
Back to top Generated by DocFX