IVsLanguageInfo.GetColorizer(IVsTextLines, IVsColorizer) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the colorizer.
public:
int GetColorizer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsColorizer ^ % ppColorizer);
public:
int GetColorizer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines ^ pBuffer, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsColorizer ^ & ppColorizer);
int GetColorizer(Microsoft::VisualStudio::TextManager::Interop::IVsTextLines const & pBuffer, [Runtime::InteropServices::Out] Microsoft::VisualStudio::TextManager::Interop::IVsColorizer const & & ppColorizer);
public int GetColorizer(Microsoft.VisualStudio.TextManager.Interop.IVsTextLines pBuffer, out Microsoft.VisualStudio.TextManager.Interop.IVsColorizer ppColorizer);
abstract member GetColorizer : Microsoft.VisualStudio.TextManager.Interop.IVsTextLines * IVsColorizer -> int
Public Function GetColorizer (pBuffer As IVsTextLines, ByRef ppColorizer As IVsColorizer) As Integer
- pBuffer
- IVsTextLines
[in] The IVsTextLines interface for the requested colorizer.
- ppColorizer
- IVsColorizer
[out] Returns an IVsColorizer object.
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsLanguageInfo::GetColorizer(
[in] IVsTextLines *pBuffer,
[out] IVsColorizer **ppColorizer
);
This method can return an interface on the language info object itself, or on new objects. The method would return an interface on new objects, for example, if the colorizer for the language needs state information on a per-file basis.
The colorizer is used for syntax coloring and can be used for quick identification of tokens on a line.
Product | Versions |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |