TextSelection.ReplaceText(String, String, Int32) 方法

定义

仅限 Microsoft 内部使用。

bool ReplaceText(std::wstring const & Pattern, std::wstring const & Replace, int vsFindOptionsValue = 0);
[System.Runtime.InteropServices.DispId(71)]
[System.Runtime.InteropServices.TypeLibFunc(64)]
public bool ReplaceText (string Pattern, string Replace, int vsFindOptionsValue = 0);
[<System.Runtime.InteropServices.DispId(71)>]
[<System.Runtime.InteropServices.TypeLibFunc(64)>]
abstract member ReplaceText : string * string * int -> bool
Public Function ReplaceText (Pattern As String, Replace As String, Optional vsFindOptionsValue As Integer = 0) As Boolean

参数

Pattern
String

要查找的模式。

Replace
String

用于替换所找到文本的字符串。

vsFindOptionsValue
Int32

查找标志。

返回

Boolean

true 如果已替换文本,则为; 否则为 false

属性

适用于