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
- buffer
Typ: Microsoft.VisualStudio.TextManager.Interop.IVsTextLines
[w] IVsTextLines Reprezentujących bufora tekstu można pokolorować obiekt.
- result
Typ: Microsoft.VisualStudio.TextManager.Interop.IVsColorizer%
[out] IVsColorizer Obiekt reprezentujący colorizer.
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
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Przy użyciu bibliotek z częściowo zaufanego kodu..