Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
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.SpanThe span of text to be replaced.
text
Type: StringThe new text.
Return Value
Type: 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.