CompletionSet::GetCompletionItemColor Method (Int32, UInt32, UInt32)

 

Gets the foreground and background colors for a selected item.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual int GetCompletionItemColor(
	int iIndex,
	[OutAttribute] unsigned int% dwFGColor,
	[OutAttribute] unsigned int% dwBGColor
)

Parameters

iIndex
Type: System::Int32

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

dwFGColor
Type: System::UInt32

[out] Returns the foreground color.

dwBGColor
Type: System::UInt32

[out] Returns the background color.

Return Value

Type: System::Int32

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.

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 F:Microsoft.VisualStudio.NativeMethods.E_NOTIMPL.

Return to top
Show: