TextSelection.ReplaceText Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Microsoft Internal Use Only.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
Function ReplaceText ( _
Pattern As String, _
Replace As String, _
vsFindOptionsValue As Integer _
) As Boolean
bool ReplaceText(
string Pattern,
string Replace,
int vsFindOptionsValue
)
bool ReplaceText(
[InAttribute] String^ Pattern,
[InAttribute] String^ Replace,
[InAttribute] int vsFindOptionsValue
)
abstract ReplaceText :
Pattern:string *
Replace:string *
vsFindOptionsValue:int -> bool
function ReplaceText(
Pattern : String,
Replace : String,
vsFindOptionsValue : int
) : boolean
Parameters
Pattern
Type: System.StringThe pattern to find.
Replace
Type: System.StringThe string with which to replace the found text.
vsFindOptionsValue
Type: System.Int32The find flags.
Return Value
Type: System.Boolean
true if the text was replaced, otherwise false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.