ITextRangeProvider.FindText(String, Boolean, Boolean) 方法

定义

返回包含指定文本的文本范围子集。

public:
 System::Windows::Automation::Provider::ITextRangeProvider ^ FindText(System::String ^ text, bool backward, bool ignoreCase);
public System.Windows.Automation.Provider.ITextRangeProvider FindText(string text, bool backward, bool ignoreCase);
abstract member FindText : string * bool * bool -> System.Windows.Automation.Provider.ITextRangeProvider
Public Function FindText (text As String, backward As Boolean, ignoreCase As Boolean) As ITextRangeProvider

参数

text
String

要搜索的文本字符串。

backward
Boolean

true 如果应返回最后一个发生的文本范围而不是第一个,否则 false

ignoreCase
Boolean

true 如果应忽略大小写,则为 ;否则 false

返回

与指定文本匹配的文本范围;否则为 null(Nothing in Visual Basic)。

注解

隐藏文本和可见文本之间没有区别。

适用于