返回选定项的前景色和背景色。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.8.0(在 Microsoft.VisualStudio.TextManager.Interop.8.0.dll 中)
语法
声明
Function GetCompletionItemColor ( _
iIndex As Integer, _
<OutAttribute> ByRef dwFGColor As UInteger, _
<OutAttribute> ByRef dwBGColor As UInteger _
) As Integer
int GetCompletionItemColor(
int iIndex,
out uint dwFGColor,
out uint dwBGColor
)
int GetCompletionItemColor(
[InAttribute] int iIndex,
[OutAttribute] unsigned int% dwFGColor,
[OutAttribute] unsigned int% dwBGColor
)
abstract GetCompletionItemColor :
iIndex:int *
dwFGColor:uint32 byref *
dwBGColor:uint32 byref -> int
function GetCompletionItemColor(
iIndex : int,
dwFGColor : uint,
dwBGColor : uint
) : int
参数
iIndex
类型:Int32[in] CompletionSet 项目利益。
dwFGColor
类型:UInt32%[out] 前景色。 有关值,请参见 COLORREF。
dwBGColor
类型:UInt32%[out] 背景色。 有关值,请参见 COLORREF。
返回值
类型:Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。
备注
COM 签名
从 textmgr2.idl:
HRESULT IVsCompletionSetEx::GetCompletionItemColor(
[in] long iIndex,
[out] COLORREF *dwFGColor,
[out] COLORREF *dwBGColor
);
,如果颜色默认情况下,GetCompletionItemColor 返回 S_FALSE 。
允许该前景,并选定项的背景色在完成后的列表中重写。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。