Class LineSegment

Class LineSegment

Namespace: Aspose.Imaging.ShapeSegments
Assembly: Aspose.Imaging.dll (25.2.0)

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

public class LineSegment : ShapeSegment

Inheritance

objectShapeSegmentLineSegment

Derived

BezierSegment

Inherited Members

ShapeSegment.Equals(object), ShapeSegment.GetHashCode(), ShapeSegment.Equals(ShapeSegment), ShapeSegment.StartPoint, ShapeSegment.EndPoint, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

LineSegment(PointF, PointF)

Initializes a new instance of the Aspose.Imaging.ShapeSegments.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

StartPoint

Gets the starting point.

public override PointF StartPoint { get; }

Property Value

PointF

Methods

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.

Equals(LineSegment)

Check if objects are equal.

protected bool Equals(LineSegment other)

Parameters

other LineSegment

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.