Table of Contents

Class LineSegment

Namespace
Aspose.Imaging.ShapeSegments
Assembly
Aspose.Imaging.dll

Represents a segment leading derectly from a specific point to the next point.

public class LineSegment : ShapeSegment
Inheritance
LineSegment
Derived
Inherited Members

Constructors

LineSegment(PointF, PointF)

Initializes a new instance of the LineSegment class.

public LineSegment(PointF startPoint, PointF endPoint)

Parameters

startPoint PointF

The start point.

endPoint PointF

The end point.

Properties

EndPoint

Gets the ending point.

public override PointF EndPoint { get; }

Property Value

PointF

The ending point.

StartPoint

Gets the starting point.

public override PointF StartPoint { get; }

Property Value

PointF

The starting point.

Methods

Equals(LineSegment)

Check if objects are equal.

protected bool Equals(LineSegment other)

Parameters

other LineSegment

The other object.

Returns

bool

The equality comparison result.

Equals(object)

Check if objects are equal.

public override bool Equals(object obj)

Parameters

obj object

The other object.

Returns

bool

The equality comparison result.

GetHashCode()

Get hash code of the current object.

public override int GetHashCode()

Returns

int

The hash code.