Table of Contents

Struct PdfTextRect

Namespace
PdfEngine.Vector.Text
Assembly
PdfEngine.Vector.dll

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

left double
bottom double
right double
top double

Fields

Bottom

public double Bottom

Field Value

double

Left

public double Left

Field Value

double

Right

public double Right

Field Value

double

Top

public double Top

Field Value

double

Properties

Height

public readonly double Height { get; }

Property Value

double

IsEmpty

public readonly bool IsEmpty { get; }

Property Value

bool

Width

public readonly double Width { get; }

Property Value

double

Methods

Contains(PdfPoint)

public readonly bool Contains(PdfPoint p)

Parameters

p PdfPoint

Returns

bool

Equals(PdfTextRect)

Indicates whether the current object is equal to another object of the same type.

public readonly bool Equals(PdfTextRect other)

Parameters

other PdfTextRect

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override readonly bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

other PdfTextRect

Normalize()

public void Normalize()

Point(double, double)

public static PdfTextRect Point(double x, double y)

Parameters

x double
y double

Returns

PdfTextRect

ToPdfRect()

As a PdfRect (x, y at the lower left).

public readonly PdfRect ToPdfRect()

Returns

PdfRect

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

m PdfMatrix

Returns

PdfTextRect

Translate(double, double)

public void Translate(double dx, double dy)

Parameters

dx double
dy double

Union(PdfTextRect)

public void Union(PdfTextRect other)

Parameters

other PdfTextRect