IEditorOperations.ReplaceText Method
Replaces text from the specified span with the specified text.
Namespace: Microsoft.VisualStudio.Text.Operations
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaração
Function ReplaceText ( _
replaceSpan As Span, _
text As String _
) As Boolean
bool ReplaceText(
Span replaceSpan,
string text
)
bool ReplaceText(
Span replaceSpan,
String^ text
)
abstract ReplaceText :
replaceSpan:Span *
text:string -> bool
function ReplaceText(
replaceSpan : Span,
text : String
) : boolean
Parameters
- replaceSpan
Type: Microsoft.VisualStudio.Text.Span
The span of text to be replaced.
- text
Type: System.String
The new text.
Return Value
Type: System.Boolean
true if the edit succeeded, 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.