Gets the foreground and background colors for a selected item.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣言
Public Overridable Function GetCompletionItemColor ( _
iIndex As Integer, _
<OutAttribute> ByRef dwFGColor As UInteger, _
<OutAttribute> ByRef dwBGColor As UInteger _
) As Integer
'使用
Dim instance As CompletionSet
Dim iIndex As Integer
Dim dwFGColor As UInteger
Dim dwBGColor As UInteger
Dim returnValue As Integer
returnValue = instance.GetCompletionItemColor(iIndex, _
dwFGColor, dwBGColor)
public virtual int GetCompletionItemColor(
int iIndex,
out uint dwFGColor,
out uint dwBGColor
)
public:
virtual int GetCompletionItemColor(
int iIndex,
[OutAttribute] unsigned int% dwFGColor,
[OutAttribute] unsigned int% dwBGColor
)
public function GetCompletionItemColor(
iIndex : int,
dwFGColor : uint,
dwBGColor : uint
) : int
Parameters
iIndex
Type: System.Int32The 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 [F:Microsoft.VisualStudio.VSConstants.S_OK if there are colors set, S_FALSE if the defaults are used]. If it fails, it returns an error code.
Implements
IVsCompletionSetEx.GetCompletionItemColor(Int32, UInt32%, UInt32%)
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 E_NOTIMPL().
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.