Udostępnij za pośrednictwem


Metoda LanguageService.GetColorizer — (IVsTextLines, IVsColorizer%)

Zwraca colorizer, związane z Source obiekt, który zawiera dany IVsTextLines obiektu.

Przestrzeń nazw:  Microsoft.VisualStudio.Package
Zestawy:   Microsoft.VisualStudio.Package.LanguageService.9.0 (w Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (w Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (w Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (w Microsoft.VisualStudio.Package.LanguageService.dll)

Składnia

'Deklaracja
Public Function GetColorizer ( _
    buffer As IVsTextLines, _
    <OutAttribute> ByRef result As IVsColorizer _
) As Integer
public int GetColorizer(
    IVsTextLines buffer,
    out IVsColorizer result
)

Parametry

Wartość zwracana

Typ: System.Int32
Jeśli się powiedzie, zwraca S_OK; w przeciwnym razie zwraca kod błędu.

Implementuje

IVsLanguageInfo.GetColorizer(IVsTextLines, IVsColorizer%)

Uwagi

Metody podstawowej zwraca istniejących Source obiekt, który zawiera IVsTextLines obiektu lub tworzy nowy Source obiektu dla IVsTextLines obiekt, a następnie zwraca się Source obiektu dla jego colorizer.Colorizer Klasy implementuje IVsColorizer interfejsu.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

LanguageService Klasa

Przeciążenie GetColorizer

Przestrzeń nazw Microsoft.VisualStudio.Package