共用方式為


IVsCompletionSetEx.GetCompletionItemColor(Int32, UInt32, UInt32) Method

Definition

Returns the foreground and background colors for a selected item.

public:
 int GetCompletionItemColor(int iIndex, [Runtime::InteropServices::Out] System::UInt32 % dwFGColor, [Runtime::InteropServices::Out] System::UInt32 % dwBGColor);
int GetCompletionItemColor(int iIndex, [Runtime::InteropServices::Out] unsigned int & dwFGColor, [Runtime::InteropServices::Out] unsigned int & dwBGColor);
public int GetCompletionItemColor (int iIndex, out uint dwFGColor, out uint dwBGColor);
abstract member GetCompletionItemColor : int * uint32 * uint32 -> int
Public Function GetCompletionItemColor (iIndex As Integer, ByRef dwFGColor As UInteger, ByRef dwBGColor As UInteger) As Integer

Parameters

iIndex
Int32

[in] CompletionSet item of interest.

dwFGColor
UInt32

[out] Foreground color. For values, see COLORREF.

dwBGColor
UInt32

[out] Background color. For values, see COLORREF.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

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.

Applies to