Share via


LanguageService.GetColorizer Method (IVsTextLines)

Iinstantiates a Colorizer class.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

Syntax

'Declaration
Public Overridable Function GetColorizer ( _
    buffer As IVsTextLines _
) As Colorizer
public virtual Colorizer GetColorizer(
    IVsTextLines buffer
)
public:
virtual Colorizer^ GetColorizer(
    IVsTextLines^ buffer
)
abstract GetColorizer : 
        buffer:IVsTextLines -> Colorizer  
override GetColorizer : 
        buffer:IVsTextLines -> Colorizer
public function GetColorizer(
    buffer : IVsTextLines
) : Colorizer

Parameters

Return Value

Type: Microsoft.VisualStudio.Package.Colorizer
If successful, returns a Colorizer object; otherwise, returns a null value.

Remarks

This method returns a new instance of a Colorizer object. If you need to supply functionality beyond what the base Colorizer class offers, then you must derive a class from the Colorizer class and return an instance of your class. This is typically not necessary as the existing Colorizer class handles all colorizing tasks using the IScanner object supplied by GetScanner.

The base method always returns a new Colorizer object that is initialized with an IScanner object obtained from GetScanner. This method is called whenever a new Source object is created.

.NET Framework Security

See Also

Reference

LanguageService Class

GetColorizer Overload

Microsoft.VisualStudio.Package Namespace