Partager via


Source(LanguageService, IVsTextLines, Colorizer) Constructor

Definition

Initializes a new instance of the Source class.

public:
 Source(Microsoft::VisualStudio::Package::LanguageService ^ service, Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ textLines, Microsoft::VisualStudio::Package::Colorizer ^ colorizer);
public Source (Microsoft.VisualStudio.Package.LanguageService service, Microsoft.VisualStudio.TextManager.Interop.IVsTextLines textLines, Microsoft.VisualStudio.Package.Colorizer colorizer);
new Microsoft.VisualStudio.Package.Source : Microsoft.VisualStudio.Package.LanguageService * Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * Microsoft.VisualStudio.Package.Colorizer -> Microsoft.VisualStudio.Package.Source
Public Sub New (service As LanguageService, textLines As IVsTextLines, colorizer As Colorizer)

Parameters

service
LanguageService

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

textLines
IVsTextLines

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

colorizer
Colorizer

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

Remarks

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.

Applies to