Share via


ITextRange.FindText(String, Int32, FindOptions) メソッド

定義

範囲内の特定のテキスト文字列を検索し、見つかった場合は文字列を選択します。

public:
 int FindText(Platform::String ^ value, int scanLength, FindOptions options);
int FindText(winrt::hstring const& value, int const& scanLength, FindOptions const& options);
public int FindText(string value, int scanLength, FindOptions options);
function findText(value, scanLength, options)
Public Function FindText (value As String, scanLength As Integer, options As FindOptions) As Integer

パラメーター

value
String

Platform::String

winrt::hstring

検索対象の文字列。

scanLength
Int32

int

検索する最大文字数。 次のいずれかになります。

options
FindOptions

テキスト検索を行うときに使用するオプション。

戻り値

Int32

int

一致するテキスト文字列の長さ。一致する文字列が見つからない場合は 0。

適用対象