Source.SetText Method (TextSpan, String)

Replaces the specified span of source with the given text.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public Sub SetText ( _
    span As TextSpan, _
    newText As String _
)
public void SetText(
    TextSpan span,
    string newText
)
public:
void SetText(
    TextSpan span, 
    String^ newText
)
member SetText : 
        span:TextSpan * 
        newText:string -> unit
public function SetText(
    span : TextSpan, 
    newText : String
)

Parameters

Remarks

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

.NET Framework Security

See Also

Reference

Source Class

SetText Overload

Microsoft.VisualStudio.Package Namespace