Source Constructor (LanguageService^, IVsTextLines^, Colorizer^)

 

Initializes a new instance of the Source class.

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

public:
Source(
	LanguageService^ service,
	IVsTextLines^ textLines,
	Colorizer^ colorizer
)

Parameters

service
Type: Microsoft.VisualStudio.Package::LanguageService^

The LanguageService object representing the language service that controls this instance. This is required and cannot be null.

textLines
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextLines^

The IVsTextLines object representing the source file. This is required and cannot be null.

colorizer
Type: Microsoft.VisualStudio.Package::Colorizer^

The Colorizer object to use for syntax highlighting. This is required and cannot be null.

The Source class -- or your derivation of this class -- is instantiated in your implementation of the CreateSource method. If you derive from the Source class, be sure to call the base constructor.

Return to top
Show: