次の方法で共有


ITextRangeProvider.FindText Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Returns a text range subset that contains the specified text.

Namespace:  System.Windows.Automation.Provider
Assembly:  System.Windows (in System.Windows.dll)

Syntax

'Declaration
Function FindText ( _
    text As String, _
    backward As Boolean, _
    ignoreCase As Boolean _
) As ITextRangeProvider
ITextRangeProvider FindText(
    string text,
    bool backward,
    bool ignoreCase
)

Parameters

  • backward
    Type: System.Boolean
    true to return the last occurring text range instead of the first; otherwise, false.
  • ignoreCase
    Type: System.Boolean
    true to ignore case; otherwise, false.

Return Value

Type: System.Windows.Automation.Provider.ITextRangeProvider
A text range that matches the specified text; otherwise, nulla null reference (Nothing in Visual Basic).

Remarks

This method does not differentiate between hidden and visible text.

Version Information

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.