Share via


LanguageService.GetSource Method

Include Protected Members
Include Inherited Members

Return a Source object.

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 GetSource(IVsTextLines) Returns an existing Source object that contains the specified buffer of source.
Public method GetSource(IVsTextView) Returns an existing Source object that contains the source file shown in the specified text view.
Public method GetSource(String) Returns an existing Source object given a file name.

Top

Remarks

A Source object represents a source file. Source contains all the necessary elements to initiate and control a parse of the source file, asynchronously or synchronously. A Source object also controls various features that change the source such as commenting and uncommenting blocks of code, using the Task List to show errors, match braces (and other such language features), format parameter info ToolTips (for completion of methods), and outlining. All of these features are supported in the base class.

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace