TextRange2.Find(String, Int32, MsoTriState, MsoTriState) 方法

定义

在对象中 TextRange2 搜索文本的子集。

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

参数

FindWhat
String

包含要查找的文本。

After
Int32

指定要搜索的文本范围的起点。

MatchCase
MsoTriState

指定目标文本是否必须与搜索文本的大小写完全一致。

WholeWords
MsoTriState

指定将仅搜索整个词。

返回

TextRange2

适用于