.NET Framework Class Library

DocumentViewer.FindNext Method

<< Click to Display Table of Contents >>

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

.NET Framework Class Library

DocumentViewer.FindNext Method

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

Namespace: Gnostice.Controls.WinForms

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

Syntax

Visual Basic

Public Function FindNext ( _
 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 FindNext(
 string searchText,
 TextSearchMode textSearchMode = TextSearchMode.Literal,
 TextSearchOptions searchOptions = TextSearchOptions.None,
 TextSearchResult lastSearchResult = null
)

Visual C++

public:
virtual TextSearchResultFindNext(
 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.FindNext(String, TextSearchMode, TextSearchOptions, TextSearchResult)

See Also

DocumentViewer Class

DocumentViewer Members

Gnostice.Controls.WinForms Namespace