TextRange2.Find Method
Searches a TextRange2 object for a subset of text.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Function Find ( _
FindWhat As String, _
After As Integer, _
MatchCase As MsoTriState, _
WholeWords As MsoTriState _
) As TextRange2
'Usage
Dim instance As TextRange2
Dim FindWhat As String
Dim After As Integer
Dim MatchCase As MsoTriState
Dim WholeWords As MsoTriState
Dim returnValue As TextRange2
returnValue = instance.Find(FindWhat, _
After, MatchCase, WholeWords)
TextRange2 Find(
string FindWhat,
int After,
MsoTriState MatchCase,
MsoTriState WholeWords
)
Parameters
FindWhat
Type: System.StringContains the text to find.
After
Type: System.Int32Specifies the point in the text range to start the search.
MatchCase
Type: Microsoft.Office.Core.MsoTriStateSpecifies if the target text must exactly match the case of the search text.
WholeWords
Type: Microsoft.Office.Core.MsoTriStateSpecifies that only whole words will be searched.
Return Value
Type: Microsoft.Office.Core.TextRange2
TextRange2