IVsCompletionSetEx::GetCompletionItemColor Method (Int32, UInt32, UInt32)
Visual Studio 2015
Returns the foreground and background colors for a selected item.
Assembly: Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)
int GetCompletionItemColor( int iIndex, [OutAttribute] unsigned int% dwFGColor, [OutAttribute] unsigned int% dwBGColor )
Parameters
- iIndex
-
Type:
System::Int32
[in] CompletionSet item of interest.
- dwFGColor
-
Type:
System::UInt32
[out] Foreground color. For values, see COLORREF.
- dwBGColor
-
Type:
System::UInt32
[out] Background color. For values, see COLORREF.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr2.idl:
HRESULT IVsCompletionSetEx::GetCompletionItemColor( [in] long iIndex, [out] COLORREF *dwFGColor, [out] COLORREF *dwBGColor );
GetCompletionItemColor returns S_FALSE if the colors are the defaults.
Allows the foreground and background colors of selected items in a completion list to be overridden.
Show: