LineSegment Class

Represents a path segment in a Figure, defined by a sequence of points connected by straight lines.

Definition

Namespace: KGySoft.Drawing.Shapes
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public sealed class LineSegment : PathSegment
Inheritance
Object    PathSegment    LineSegment

Remarks

  Note

This class is meant to provide information about a line segment in a Figure for interoperability with other libraries. To add new figures or path segments to a Path, use its public StartFigure and Add... methods instead.

Properties

EndPoint Gets the end point of this LineSegment.
(Overrides PathSegmentEndPoint)
Points Gets a read-only collection of the points that define this LineSegment.
StartPoint Gets the start point of this LineSegment.
(Overrides PathSegmentStartPoint)

Methods

GetFlattenedPoints Gets the flattened points that define this PathSegment as a polyline.
(Inherited from PathSegment)

See Also