PdfLineSegment Struct
Represents a segment of a PdfSubpath.
public struct PdfLineSegment : IEquatable<PdfLineSegment>
Public Structure PdfLineSegment
Implements IEquatable(Of PdfLineSegment)
Implements
Constructors
PdfLineSegment(PdfPoint)
Initializes a new instance of the straight line segment.
Parameters
endPoint
- PdfPoint
The end point of the straight line segment.
PdfLineSegment(PdfPoint, PdfPoint, PdfPoint)
Initializes a new instance of the curved line segment (cubic Bézier curve).
public PdfLineSegment(PdfPoint controlPoint1, PdfPoint controlPoint2, PdfPoint endPoint)
Public Sub New(controlPoint1 As PdfPoint, controlPoint2 As PdfPoint, endPoint As PdfPoint)
Parameters
controlPoint1
- PdfPoint
The first control point of the curved line segment.
controlPoint2
- PdfPoint
The second control point of the curved line segment.
endPoint
- PdfPoint
The end point of the curved line segment.
See Also
Properties
ControlPoint1
Gets the first control point of the curved line segment (cubic Bézier curve).
public readonly PdfPoint ControlPoint1 { get; }
Public ReadOnly Property ControlPoint1 As PdfPoint
Property Value
The first control point of the curved line segment.
ControlPoint2
Gets the second control point of the curved line segment (cubic Bézier curve).
public readonly PdfPoint ControlPoint2 { get; }
Public ReadOnly Property ControlPoint2 As PdfPoint
Property Value
The second control point of the curved line segment.
EndPoint
Gets the end point of the line segment.
Property Value
The end point of the line segment.
IsCurve
Gets a value indicating whether this PdfLineSegment is a curved line segment (cubic Bézier curve).
Property Value
- System.Boolean
true if this PdfLineSegment is a curved line segment; otherwise, false.
See Also
IsStraight
Gets a value indicating whether this PdfLineSegment is a straight line segment.
Property Value
- System.Boolean
true if this PdfLineSegment is a straight line segment; otherwise, false.
Methods
Equals(PdfLineSegment)
Determines whether the other
PdfLineSegment is equal to this PdfLineSegment instance.
public bool Equals(PdfLineSegment other)
Public Function Equals(other As PdfLineSegment) As Boolean
Parameters
other
- PdfLineSegment
The other line segment to compare with this line segment instance.
Returns
- System.Boolean
true if the other
PdfLineSegment is equal to this PdfLineSegment instance; otherwise, false.
Equals(Object)
Determines whether the specified System.Object is equal to this PdfLineSegment instance.
public override bool Equals(object obj)
Public Overrides Function Equals(obj As Object) As Boolean
Parameters
obj
- System.Object
The System.Object to compare with this line segment instance.
Returns
- System.Boolean
true if the specified System.Object is a PdfLineSegment and is equal to this PdfLineSegment instance; otherwise, false.
Overrides
GetHashCode()
Returns a hash code for this PdfLineSegment instance.
Returns
- System.Int32
An integer value that specifies a hash value for this PdfLineSegment instance.
Overrides
ToString()
Returns a System.String that represents this PdfLineSegment instance.
Returns
- System.String
A System.String that represents this PdfLineSegment instance.
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
Operators
Equality(PdfLineSegment, PdfLineSegment)
Determines whether first
and second
PdfLineSegments are equal.
public static bool operator ==(PdfLineSegment first, PdfLineSegment second)
Public Shared Operator =(first As PdfLineSegment, second As PdfLineSegment) As Boolean
Parameters
first
- PdfLineSegment
The first line segment.
second
- PdfLineSegment
The second line segment.
Returns
- System.Boolean
true if first
and second
line segments are equal; otherwise, false.
Inequality(PdfLineSegment, PdfLineSegment)
Determines whether first
and second
PdfLineSegments are not equal.
public static bool operator !=(PdfLineSegment first, PdfLineSegment second)
Public Shared Operator <>(first As PdfLineSegment, second As PdfLineSegment) As Boolean
Parameters
first
- PdfLineSegment
The first line segment.
second
- PdfLineSegment
The second line segment.
Returns
- System.Boolean
true if first
and second
line segments are not equal; otherwise, false.