IVsProvideColorableItems::GetColorableItem Method (Int32, IVsColorableItem^)
Visual Studio 2015
Determines the item information for each custom colorable item proffered by the language service.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- iIndex
-
Type:
System::Int32
[in] Integer containing the index value for the custom colorable item. This value is never zero.
- ppItem
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsColorableItem^
[out] Custom colorable item object. For more information, see IVsColorableItem.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsProvideColorableItems::GetColorableItem( [in] int iIndex, [out] IVsColorableItem **ppItem );
An index value of 0 is never seen by this method as that colorable item represents the default text color, which Visual Studio handles automatically.
Show: