The successor to the GetEntryImage method. This method also returns the image list. If this method returns a non-zero result, the dropdown bar calls GetEntryImage instead.
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop.12.1.DesignTime(在 Microsoft.VisualStudio.TextManager.Interop.12.1.DesignTime.dll 中)
语法
声明
Function GetEntryImage ( _
iCombo As Integer, _
iIndex As Integer, _
<OutAttribute> ByRef piImageIndex As Integer, _
<OutAttribute> ByRef phImageList As IntPtr _
) As Integer
int GetEntryImage(
int iCombo,
int iIndex,
out int piImageIndex,
out IntPtr phImageList
)
int GetEntryImage(
[InAttribute] int iCombo,
[InAttribute] int iIndex,
[OutAttribute] int% piImageIndex,
[OutAttribute] IntPtr% phImageList
)
abstract GetEntryImage :
iCombo:int *
iIndex:int *
piImageIndex:int byref *
phImageList:IntPtr byref -> int
function GetEntryImage(
iCombo : int,
iIndex : int,
piImageIndex : int,
phImageList : IntPtr
) : int
参数
iCombo
类型:Int32The index of the combo box.
iIndex
类型:Int32The index of the item.
piImageIndex
类型:Int32%[out] The index of the image.
phImageList
类型:IntPtr%[out] The pointer to the image list.
返回值
类型:Int32
The HRESULT.
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。