RichTextBox for UWP/WinRT
FindText メソッド

検索するテキスト文字列。
検索方向を指定します。デフォルトは順方向検索です。
テキスト検索を実行するときに使用するオプション。
選択範囲の末尾から特定の文字列を検索し、見つかった場合は文字列を選択します。
構文
'宣言
 
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
public System.int FindText( 
   System.string text,
   Windows.UI.Xaml.Documents.LogicalDirection direction,
   C1FindOptions option
)

パラメータ

text
検索するテキスト文字列。
direction
検索方向を指定します。デフォルトは順方向検索です。
option
テキスト検索を実行するときに使用するオプション。

戻り値の型

見つかった場合は開始インデックスを返します。見つからなかった場合は、-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

参照

関連項目

C1RichTextBox クラス
C1RichTextBox メンバ

Send Feedback