Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

2166a4d6 3a76 7bdb f695 03755b972893

haplokuon edited this page May 6, 2023 · 1 revision

Polyline2D Class

netDxf 3.0.0 Library

Represents a two dimensional polyline entity.

Definition

Namespace: netDxf.Entities
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public class Polyline2D : EntityObject

VB

Public Class Polyline2D
	Inherits EntityObject

C++

public ref class Polyline2D : public EntityObject

F#

type Polyline2D = 
    class
        inherit EntityObject
    end
Inheritance Object → DxfObjectEntityObject → Polyline2D

Remarks

Two dimensional polylines can hold information about the width of the lines and arcs that compose them.

Constructors

Polyline2D() Initializes a new instance of the Polyline2D class.
Polyline2D(IEnumerable(Polyline2DVertex)) Initializes a new instance of the Polyline2D class.
Polyline2D(IEnumerable(Vector2)) Initializes a new instance of the Polyline2D class.
Polyline2D(IEnumerable(Polyline2DVertex), Boolean) Initializes a new instance of the Polyline2D class.
Polyline2D(IEnumerable(Vector2), Boolean) Initializes a new instance of the Polyline2D class.

Properties

CodeName Gets the DXF object name.
(Inherited from DxfObject)
Color Gets or sets the entity color.
(Inherited from EntityObject)
DefaultSplineSegs Gets or sets if the default SplineSegs value.
Elevation Gets or sets the polyline elevation.
Handle Gets the handle assigned to the DXF object.
(Inherited from DxfObject)
IsClosed Gets or sets if the polyline is closed.
IsVisible Gets or set the entity visibility.
(Inherited from EntityObject)
Layer Gets or sets the entity layer.
(Inherited from EntityObject)
Linetype Gets or sets the entity line type.
(Inherited from EntityObject)
LinetypeGeneration Enable or disable if the linetype pattern is generated continuously around the vertexes of the polyline.
LinetypeScale Gets or sets the entity line type scale.
(Inherited from EntityObject)
Lineweight Gets or sets the entity line weight, one unit is always 1/100 mm (default = ByLayer).
(Inherited from EntityObject)
Normal Gets or sets the entity normal.
(Inherited from EntityObject)
Owner Gets the owner of the actual DXF object.
(Inherited from EntityObject)
Reactors Gets the list of DXF objects that has been attached to this entity.
(Inherited from EntityObject)
SmoothType Gets or sets the polyline smooth type.
Thickness Gets or sets the polyline thickness.
Transparency Gets or sets layer transparency (default: ByLayer).
(Inherited from EntityObject)
Type Gets the entity type.
(Inherited from EntityObject)
Vertexes Gets or sets the polyline vertex list.
XData Gets the entity extended data.
(Inherited from DxfObject)

Methods

Clone Creates a new Polyline2D that is a copy of the current instance.
(Overrides EntityObject.Clone())
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
Explode Decompose the actual polyline in its internal entities, lines and arcs.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
PolygonalVertexes(Int32) Obtains a list of vertexes that represent the polyline approximating the curve segments as necessary.
PolygonalVertexes(Int32, Double, Double) Obtains a list of vertexes that represent the polyline approximating the curve segments as necessary.
Reverse Switch the polyline direction.
SetConstantWidth Sets a constant width for all the polyline segments.
ToString Converts the value of this instance to its equivalent string representation.
(Inherited from EntityObject)
TransformBy(Matrix4) Moves, scales, and/or rotates the current entity given a 4x4 transformation matrix.
(Inherited from EntityObject)
TransformBy(Matrix3, Vector3) Moves, scales, and/or rotates the current entity given a 3x3 transformation matrix and a translation vector.
(Overrides EntityObject.TransformBy(Matrix3, Vector3))

Events

LayerChanged
(Inherited from EntityObject)
LinetypeChanged
(Inherited from EntityObject)
XDataAddAppReg
(Inherited from DxfObject)
XDataRemoveAppReg
(Inherited from DxfObject)

See Also

Reference

netDxf.Entities Namespace

Clone this wiki locally