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
object ← ShapeSegment ← LineSegment
Derived
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
StartPoint
Gets the starting point.
public override PointF StartPoint { get; }
Property Value
Methods
Equals(object)
Check if objects are equal.
public override bool Equals(object obj)
Parameters
obj
object
The other object.
Returns
The equality comparison result.
Equals(LineSegment)
Check if objects are equal.
protected bool Equals(LineSegment other)
Parameters
other
LineSegment
The other object.
Returns
The equality comparison result.
GetHashCode()
Get hash code of the current object.
public override int GetHashCode()
Returns
The hash code.