PdfTextElement Class

A line of text of a page (PdfPage.ExtractTextLayout): its text and its bounding box.

public sealed class PdfTextElement : IEquatable<PdfTextElement>
Implements

Constructors

NameDescription
PdfTextElement(string, PdfRectangle)A line of text of a page (PdfPage.ExtractTextLayout): its text and its bounding box.

PdfTextElement(string, PdfRectangle)

PdfTextElement.cs

A line of text of a page (PdfPage.ExtractTextLayout): its text and its bounding box.

public PdfTextElement(string Text, PdfRectangle Bounds)

Parameters

Text string
The text of the line.
Bounds PdfRectangle
The bounding box of the glyphs of the line, in default user space.

Properties

NameDescription
BoundsThe bounding box of the glyphs of the line, in default user space.
TextThe text of the line.

The bounding box of the glyphs of the line, in default user space.

public PdfRectangle Bounds { get; init; }

Property value

PdfRectangle

The text of the line.

public string Text { get; init; }

Property value

string

Methods

NameDescription
Deconstruct(string, PdfRectangle)
Equals(PdfTextElement?)
Equals(object?)
GetHashCode()
ToString()Returns a string that represents the current object.

Deconstruct(string, PdfRectangle)

public void Deconstruct(out string Text, out PdfRectangle Bounds)

Parameters

Text string
Bounds PdfRectangle

No documentation is available.

Equals overloads

Equals(PdfTextElement?)

public bool Equals(PdfTextElement? other)
Parameters
other PdfTextElement?
Returns

bool

No documentation is available.

Equals(object?)

public override bool Equals(object? obj)
Parameters
obj object?
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.

Operators

NameDescription
operator ==(PdfTextElement?, PdfTextElement?)
operator !=(PdfTextElement?, PdfTextElement?)

operator ==(PdfTextElement?, PdfTextElement?)

public static bool operator ==(PdfTextElement? left, PdfTextElement? right)

Parameters

left PdfTextElement?
right PdfTextElement?

Returns

bool

No documentation is available.

operator !=(PdfTextElement?, PdfTextElement?)

public static bool operator !=(PdfTextElement? left, PdfTextElement? right)

Parameters

left PdfTextElement?
right PdfTextElement?

Returns

bool

No documentation is available.