Edit

Share via


TextRange2.Find(String, Int32, MsoTriState, MsoTriState) Method

Definition

Searches a TextRange2 object for a subset of text.

public Microsoft.Office.Core.TextRange2 Find (string FindWhat, int After = 0, Microsoft.Office.Core.MsoTriState MatchCase = Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState WholeWords = Microsoft.Office.Core.MsoTriState.msoFalse);
abstract member Find : string * int * Microsoft.Office.Core.MsoTriState * Microsoft.Office.Core.MsoTriState -> Microsoft.Office.Core.TextRange2
Public Function Find (FindWhat As String, Optional After As Integer = 0, Optional MatchCase As MsoTriState = Microsoft.Office.Core.MsoTriState.msoFalse, Optional WholeWords As MsoTriState = Microsoft.Office.Core.MsoTriState.msoFalse) As TextRange2

Parameters

FindWhat
String

Contains the text to find.

After
Int32

Specifies the point in the text range to start the search.

MatchCase
MsoTriState

Specifies if the target text must exactly match the case of the search text.

WholeWords
MsoTriState

Specifies that only whole words will be searched.

Returns

TextRange2

Applies to