다음을 통해 공유


Source.SetText Method

Include Protected Members
Include Inherited Members

Puts the specified text into the source file.

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

Source Members

Microsoft.VisualStudio.Package Namespace