Class LineSegment
Path for a linear segment.
Inheritance
System.Object
LineSegment
Implements
IronSoftware.Abstractions.ILineSegment
IronSoftware.Abstractions.IPathSegment
Namespace: IronWord.Models
Assembly: IronWord.dll
Syntax
public class LineSegment : Object, ILineSegment, IPathSegment
Constructors
LineSegment(PointF, Boolean, Boolean)
Create a new line segment.
Declaration
public LineSegment(PointF coordinate, bool isClose = false, bool separateFromPrevious = true)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Drawing.PointF | coordinate | The (x, y) coordinate of the end of the line segment. |
| System.Boolean | isClose | Whether this line segment closes the path or not. |
| System.Boolean | separateFromPrevious | Whether this line segment connects to the previous line segment or not. |
Properties
Coordinate
Coordinate of the line segment.
Declaration
public PointF Coordinate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.PointF |
IsClose
Whether this line segment connects back to the path start or not.
Declaration
public bool IsClose { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
SeparateFromPrevious
Whether this line segment connects to the previous line segment or not.
Declaration
public bool SeparateFromPrevious { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Implements
IronSoftware.Abstractions.ILineSegment
IronSoftware.Abstractions.IPathSegment