Class GeoPolyline
The GeoPolyline Class, which is a container of the GeoMetricEntityBase. This Object contains both GeoArcs and GeoLines. This Object is essentially a wrapper over a System.Collections.Generic.List<T> where T is the GeoBase type.
Implements
System.ComponentModel.INotifyPropertyChanged
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 GeoPolyline : GeoBase, INotifyPropertyChanged
Constructors
| Improve this Doc View SourceGeoPolyline()
Default Constructor
Declaration
public GeoPolyline()
GeoPolyline(List<Double>, IReadOnlyList<Double>, IReadOnlyList<Double>, Boolean)
The Main GeoPolyLine Constructor
Declaration
public GeoPolyline(List<double> xValues, IReadOnlyList<double> yValues, IReadOnlyList<double> bulgeList, bool polylineFlag)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.Double> | xValues | X Coordinates |
System.Collections.Generic.IReadOnlyList<System.Double> | yValues | Y Coordinates |
System.Collections.Generic.IReadOnlyList<System.Double> | bulgeList | A List of Bulges |
System.Boolean | polylineFlag | The isClosed Property of a polyline |
Properties
| Improve this Doc View SourceArea
The Total Area of the polyline
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 |
SectionCount
The Total number of sections in the section list
Declaration
public int SectionCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceAdd(GeoBase)
Add a section to the geo polyline
Declaration
public void Add(GeoBase section)
Parameters
Type | Name | Description |
---|---|---|
GeoBase | section |
UpdateGeometry(String)
Override of the Update Geometry method from the GeoBase class
Declaration
protected override sealed void UpdateGeometry(string command = "")
Parameters
Type | Name | Description |
---|---|---|
System.String | command |
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged