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
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
LineSegmentThe other object.
Returns
- bool
The equality comparison result.
Equals(object)
Check if objects are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe 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.