Source::SetText Method (TextSpan, String^)

 

Replaces the specified span of source with the given text.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
void SetText(
	TextSpan span,
	String^ newText
)

Parameters

span
Type: Microsoft.VisualStudio.TextManager.Interop::TextSpan

A TextSpan object describing the span to replace.

newText
Type: System::String^

A string holding the new text.

This method forwards the call to the other span-oriented SetText(Int32, Int32, Int32, Int32, String^) method.

Return to top
Show: