LanguageService::GetColorizer Method (IVsTextLines^, IVsColorizer^)

 

Returns the colorizer associated with a Source object that contains the given IVsTextLines object.

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

public:
virtual int GetColorizer(
	IVsTextLines^ buffer,
	[OutAttribute] IVsColorizer^% result
) sealed

Parameters

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

[in] An IVsTextLines object representing the buffer of text to colorize.

result
Type: Microsoft.VisualStudio.TextManager.Interop::IVsColorizer^

[out] An IVsColorizer object representing the colorizer.

Return Value

Type: System::Int32

If successful, returns S_OK; otherwise, returns an error code.

The base method returns the existing Source object that contains the IVsTextLines object or creates a new Source object for the IVsTextLines object, and then asks the Source object for its colorizer. The Colorizer class implements the IVsColorizer interface.

Return to top
Show: