共用方式為


CompletionSet.GetCompletionItemColor(Int32, UInt32, UInt32) Method

Definition

Gets the foreground and background colors for a selected item.

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

Parameters

iIndex
Int32

The index of the item for which to get the colors.

dwFGColor
UInt32

[out] Returns the foreground color.

dwBGColor
UInt32

[out] Returns the background color.

Returns

If the method succeeds, it returns S_OK if there are colors set, S_FALSE if the defaults are used. If it fails, it returns an error code.

Implements

Remarks

This method is the implementation of the GetCompletionItemColor method of the IVsCompletionSetEx interface.

This method is not implemented and returns both dwFGColor and dwBGColor as 0, and returns <xref:Microsoft.VisualStudio.NativeMethods.E_NOTIMPL>.

Applies to