RichTextBox for WinRT
FindText Method


The text string to search for.
Specifies the search direction. The default is a forward search.
The options to use when doing the text search.
Searches for a particular text string from the end of Selection, if found, selects the string.
Syntax
'Declaration
 
Public Function FindText( _
   ByVal text As System.String, _
   Optional ByVal direction As Windows.UI.Xaml.Documents.LogicalDirection, _
   Optional ByVal option As C1FindOptions _
) As System.Integer
'Usage
 
Dim instance As C1RichTextBox
Dim text As System.String
Dim direction As Windows.UI.Xaml.Documents.LogicalDirection
Dim option As C1FindOptions
Dim value As System.Integer
 
value = instance.FindText(text, direction, option)
public System.int FindText( 
   System.string text,
   Windows.UI.Xaml.Documents.LogicalDirection direction,
   C1FindOptions option
)

Parameters

text
The text string to search for.
direction
Specifies the search direction. The default is a forward search.
option
The options to use when doing the text search.

Return Value

If found, return the start index. If not found, return -1.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1RichTextBox Class
C1RichTextBox Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback