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.String
The pattern to find.
- Replace
Type: System.String
The string with which to replace the found text.
- vsFindOptionsValue
Type: System.Int32
The 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.