Compartir a través de


LanguageService.GetColorizer Method (IVsTextLines, IVsColorizer%)

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

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 Function GetColorizer ( _
    buffer As IVsTextLines, _
    <OutAttribute> ByRef result As IVsColorizer _
) As Integer
public int GetColorizer(
    IVsTextLines buffer,
    out IVsColorizer result
)
public:
virtual int GetColorizer(
    IVsTextLines^ buffer, 
    [OutAttribute] IVsColorizer^% result
) sealed
abstract GetColorizer : 
        buffer:IVsTextLines * 
        result:IVsColorizer byref -> int  
override GetColorizer : 
        buffer:IVsTextLines * 
        result:IVsColorizer byref -> int
public final function GetColorizer(
    buffer : IVsTextLines, 
    result : IVsColorizer
) : int

Parameters

Return Value

Type: Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

IVsLanguageInfo.GetColorizer(IVsTextLines, IVsColorizer%)

Remarks

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.

.NET Framework Security

See Also

Reference

LanguageService Class

GetColorizer Overload

Microsoft.VisualStudio.Package Namespace