Show / Hide Table of Contents

Class Polyline

Represents a generic polyline EntityObject.

Inheritance
System.Object
DxfObject
EntityObject
Polyline
Implements
IHasXData
System.ICloneable
Inherited Members
EntityObject.LayerChanged
EntityObject.OnLayerChangedEvent(Layer, Layer)
EntityObject.LinetypeChanged
EntityObject.OnLinetypeChangedEvent(Linetype, Linetype)
EntityObject.XDataAddAppReg
EntityObject.OnXDataAddAppRegEvent(ApplicationRegistry)
EntityObject.XDataRemoveAppReg
EntityObject.OnXDataRemoveAppRegEvent(ApplicationRegistry)
EntityObject.Reactors
EntityObject.Type
EntityObject.Color
EntityObject.Layer
EntityObject.Linetype
EntityObject.Lineweight
EntityObject.Transparency
EntityObject.LinetypeScale
EntityObject.IsVisible
EntityObject.Normal
EntityObject.Owner
EntityObject.XData
EntityObject.TransformBy(Matrix4)
EntityObject.ToString()
DxfObject.CodeName
DxfObject.Handle
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)
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public class Polyline : EntityObject, IHasXData, ICloneable

Constructors

| Improve this Doc View Source

Polyline()

Initializes a new instance of the Polyline3d class.

Declaration
public Polyline()
| Improve this Doc View Source

Polyline(IEnumerable<PolylineVertex>)

Initializes a new instance of the Polyline3d class.

Declaration
public Polyline(IEnumerable<PolylineVertex> vertexes)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<PolylineVertex> vertexes

3d polyline PolylineVertex list.

| Improve this Doc View Source

Polyline(IEnumerable<PolylineVertex>, Boolean)

Initializes a new instance of the Polyline3d class.

Declaration
public Polyline(IEnumerable<PolylineVertex> vertexes, bool isClosed)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<PolylineVertex> vertexes

3d polyline PolylineVertex list.

System.Boolean isClosed

Sets if the polyline is closed (default: false).

| Improve this Doc View Source

Polyline(IEnumerable<Vector3>)

Initializes a new instance of the Polyline3d class.

Declaration
public Polyline(IEnumerable<Vector3> vertexes)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Vector3> vertexes

3d polyline Vector3 list.

| Improve this Doc View Source

Polyline(IEnumerable<Vector3>, Boolean)

Initializes a new instance of the Polyline3d class.

Declaration
public Polyline(IEnumerable<Vector3> vertexes, bool isClosed)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Vector3> vertexes

3d polyline Vector3 list.

System.Boolean isClosed

Sets if the polyline is closed, by default it will create an open polyline.

Properties

| Improve this Doc View Source

IsClosed

Gets or sets if the polyline is closed.

Declaration
public bool IsClosed { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

LinetypeGeneration

Enable or disable if the line type pattern is generated continuously around the vertexes of the polyline.

Declaration
public bool LinetypeGeneration { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Thickness

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

Vertexes

Gets the polyline PolylineVertex list.

Declaration
public ObservableCollection<PolylineVertex> Vertexes { get; }
Property Value
Type Description
ObservableCollection<PolylineVertex>

Methods

| Improve this Doc View Source

Clone()

Creates a new Polyline that is a copy of the current instance.

Declaration
public override object Clone()
Returns
Type Description
System.Object

A new Polyline that is a copy of this instance.

Overrides
EntityObject.Clone()
| Improve this Doc View Source

Explode()

Decompose the actual polyline in a list of Line.

Declaration
public List<EntityObject> Explode()
Returns
Type Description
System.Collections.Generic.List<EntityObject>

A list of Line that made up the polyline.

| Improve this Doc View Source

Reverse()

Switch the polyline direction.

Declaration
public void Reverse()
| Improve this Doc View Source

TransformBy(Matrix3, Vector3)

Moves, scales, and/or rotates the current entity given a 3x3 transformation matrix and a translation vector.

Declaration
public override void TransformBy(Matrix3 transformation, Vector3 translation)
Parameters
Type Name Description
Matrix3 transformation

Transformation matrix.

Vector3 translation

Translation vector.

Overrides
EntityObject.TransformBy(Matrix3, Vector3)
Remarks

Matrix3 adopts the convention of using column vectors to represent a transformation matrix.

Implements

IHasXData
System.ICloneable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX