.NET Framework Class Library

DocumentViewer.FindPrevious Method

<< Click to Display Table of Contents >>

Navigation:  Gnostice Document Studio .NET > Reference Documentation > API Reference > Gnostice.Controls.WPF Namespace > DocumentViewer Class > DocumentViewer Methods >

.NET Framework Class Library

DocumentViewer.FindPrevious Method

Search for text in the reverse direction starting from either the current cursor position (CursorPosition) or the position of the last search occurrence.

Namespace: Gnostice.Controls.WPF

Assembly:  Gnostice.Controls.WPF (in Gnostice.Controls.WPF.dll)

Syntax

Visual Basic

Public Function FindPrevious ( _
 searchText As String, _
 Optional textSearchMode As TextSearchMode = TextSearchMode.Literal, _
 Optional searchOptions As TextSearchOptions = TextSearchOptions.None, _
 Optional lastSearchResult As TextSearchResult = Nothing _
As TextSearchResult

C#

public TextSearchResult FindPrevious(
 string searchText,
 TextSearchMode textSearchMode = TextSearchMode.Literal,
 TextSearchOptions searchOptions = TextSearchOptions.None,
 TextSearchResult lastSearchResult = null
)

Visual C++

public:
virtual TextSearchResultFindPrevious(
 StringsearchText,
 TextSearchMode textSearchMode = TextSearchMode::Literal,
 TextSearchOptions searchOptions = TextSearchOptions::None,
 TextSearchResultlastSearchResult = nullptr
sealed

Parameters

searchText

Type: System.String

The text string to look for.

textSearchMode (Optional)

Type: Gnostice.Core.TextSearchMode

The text search mode. Whether literal search or pattern search using regex.

searchOptions (Optional)

Type: Gnostice.Core.TextSearchOptions

Text search options.

lastSearchResult (Optional)

Type: Gnostice.Core.DOM.TextSearchResult

The result of the last search operation or null if the search should start at the current cursor position (CursorPosition).

Return Value

Details of the search text occurrence (TextSearchResult) or null if no more occurrences of the search text could be found.

Implements

IView.FindPrevious(String, TextSearchMode, TextSearchOptions, TextSearchResult)

See Also

DocumentViewer Class

DocumentViewer Members

Gnostice.Controls.WPF Namespace