次の方法で共有


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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'宣言
Public Function GetColorizer ( _
    buffer As IVsTextLines, _
    <OutAttribute> ByRef result As IVsColorizer _
) As Integer
'使用
Dim instance As LanguageService
Dim buffer As IVsTextLines
Dim result As IVsColorizer
Dim returnValue As Integer

returnValue = instance.GetColorizer(buffer, _
    result)
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: System.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

LanguageService Members

GetColorizer Overload

Microsoft.VisualStudio.Package Namespace