Condividi tramite


Source.SetText Method

Include Protected Members
Include Inherited Members

Puts the specified text into the source file.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method SetText(String) Replaces the source contents with the given text.
Public method SetText(TextSpan, String) Replaces the specified span of source with the given text.
Public method SetText(Int32, Int32, Int32, Int32, String) Replaces the specified section of source with the given text.

Top

Remarks

These methods change the text in the source file, either by replacing the entire contents of the source or only a specified section.

See Also

Reference

Source Class

Microsoft.VisualStudio.Package Namespace