Skip to content

PDFTextSearchResult

Namespace: O2S.Components.PDF4NET.Content

Defines the result returned by a text search operation.

public class PDFTextSearchResult

Inheritance ObjectPDFTextSearchResult

Properties

DisplayBounds

Gets the bounds of the search result.

public PDFDisplayRectangle DisplayBounds { get; }

Property Value

PDFDisplayRectangle
The bounding rectangle of the search result in visual coordinates.


PrefixText

Gets the text before the search result.

public string PrefixText { get; }

Property Value

String
The text before the search result, in order to provide overall context.


PrefixTextRuns

Gets the prefix text fragments.

public PDFTextRunCollection PrefixTextRuns { get; internal set; }

Property Value

PDFTextRunCollection
The collection of text fragments that compose the prefix text of the search result.


SuffixText

Gets the text after the search result.

public string SuffixText { get; }

Property Value

String
The text after the search result, in order to provide overall context.


SuffixTextRuns

Gets the suffix text fragments.

public PDFTextRunCollection SuffixTextRuns { get; internal set; }

Property Value

PDFTextRunCollection
The collection of text fragments that compose the suffix text of the search result.


Text

Gets the result text.

public string Text { get; }

Property Value

String
The text associated with the result, also the text being searched.


TextRuns

Gets the text fragments.

public PDFTextRunCollection TextRuns { get; internal set; }

Property Value

PDFTextRunCollection
The collection of text fragments that compose the search result.


TypographicDisplayBounds

Gets the typographic bounds of the search result.

public PDFDisplayRectangle TypographicDisplayBounds { get; }

Property Value

PDFDisplayRectangle
The typographic bounding rectangle of the search result in visual coordinates.


Methods

ToString()

Converts the object to string.

public string ToString()

Returns

String
This object as string.