Udostępnij za pośrednictwem


ITextRangeProvider.FindText(String, Boolean, Boolean) Method

Definition

Returns a text range subset that contains the specified text.

public:
 ITextRangeProvider ^ FindText(Platform::String ^ text, bool backward, bool ignoreCase);
ITextRangeProvider FindText(winrt::hstring const& text, bool const& backward, bool const& ignoreCase);
public ITextRangeProvider FindText(string text, bool backward, bool ignoreCase);
function findText(text, backward, ignoreCase)
Public Function FindText (text As String, backward As Boolean, ignoreCase As Boolean) As ITextRangeProvider

Parameters

text
String

Platform::String

winrt::hstring

The text string to search for.

backward
Boolean

bool

true to return the last occurring text range instead of the first; otherwise, false.

ignoreCase
Boolean

bool

true to ignore case; otherwise, false.

Returns

A text range that matches the specified text; otherwise null.

Applies to