Struct PdfTextRect
A rectangle by its edges in PDF orientation (y up), with the semantics of PDFium's float rectangle that the text page's rules are written against: a zero-width rectangle is a valid point or line (not "nothing"), intersecting disjoint rectangles gives all zeros, and union and containment normalize first.
public struct PdfTextRect : IEquatable<PdfTextRect>
- Implements
- Inherited Members
Constructors
PdfTextRect(double, double, double, double)
public PdfTextRect(double left, double bottom, double right, double top)
Parameters
Fields
Bottom
public double Bottom
Field Value
Left
public double Left
Field Value
Right
public double Right
Field Value
Top
public double Top
Field Value
Properties
Height
public readonly double Height { get; }
Property Value
IsEmpty
public readonly bool IsEmpty { get; }
Property Value
Width
public readonly double Width { get; }
Property Value
Methods
Contains(PdfPoint)
public readonly bool Contains(PdfPoint p)
Parameters
pPdfPoint
Returns
Equals(PdfTextRect)
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(PdfTextRect other)
Parameters
otherPdfTextRectAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override readonly bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override readonly int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Intersect(PdfTextRect)
public void Intersect(PdfTextRect other)
Parameters
otherPdfTextRect
Normalize()
public void Normalize()
Point(double, double)
public static PdfTextRect Point(double x, double y)
Parameters
Returns
ToPdfRect()
As a PdfRect (x, y at the lower left).
public readonly PdfRect ToPdfRect()
Returns
ToString()
Returns the fully qualified type name of this instance.
public override readonly string ToString()
Returns
- string
The fully qualified type name.
Transform(in PdfMatrix)
The bounds of the rectangle's four corners mapped by m.
public readonly PdfTextRect Transform(in PdfMatrix m)
Parameters
Returns
Translate(double, double)
public void Translate(double dx, double dy)
Parameters
Union(PdfTextRect)
public void Union(PdfTextRect other)
Parameters
otherPdfTextRect