Skip to content

# PDFVisualTextSearchResult

Namespace: O2S.Components.PDF4NET.View.Content

Defines a search result that is displayed in a PDFDocumentView control.

    public class PDFVisualTextSearchResult

Inheritance Object → PDFVisualTextSearchResult

## Constructors

### PDFVisualTextSearchResult(PDFTextSearchResult, PDFVisualPage)

Initializes a new PDFVisualTextSearchResult object.

    public PDFVisualTextSearchResult(PDFTextSearchResult textSearchResult, PDFVisualPage visualPage)

Parameters

`textSearchResult` PDFTextSearchResult
The underlying text search result object.

`visualPage` PDFVisualPage
The visual page this search result belongs to.

## 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.

### 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; }

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.

### VisualPage

Gets the visual page that displays this search result.

    public PDFVisualPage VisualPage { get; }

Property Value

PDFVisualPage

## Methods

### ToString()

Converts the object to string.

    public string ToString()

Returns

String
This object as string.