IVsDropdownBarClient.GetEntryImage 方法
傳回與下拉式項目相關的圖像 (glyph)。
命名空間: Microsoft.VisualStudio.TextManager.Interop
組件: Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
語法
'宣告
Function GetEntryImage ( _
iCombo As Integer, _
iIndex As Integer, _
<OutAttribute> ByRef piImageIndex As Integer _
) As Integer
int GetEntryImage(
int iCombo,
int iIndex,
out int piImageIndex
)
int GetEntryImage(
[InAttribute] int iCombo,
[InAttribute] int iIndex,
[OutAttribute] int% piImageIndex
)
abstract GetEntryImage :
iCombo:int *
iIndex:int *
piImageIndex:int byref -> int
function GetEntryImage(
iCombo : int,
iIndex : int,
piImageIndex : int
) : int
參數
iCombo
類型:Int32[in]下拉式列 / 視窗組合。
iIndex
類型:Int32[in]感興趣的項目索引。
piImageIndex
類型:Int32%[] out在 [影像] 清單中的圖像 (glyph) 的索引。
傳回值
類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。
備註
COM 簽章
從 textmgr.idl:
HRESULT IVsDropdownBarClient::GetEntryImage(
[in] long iCombo,
[in] long iIndex,
[out] long *piImageIndex
);
GetImage只有您指定時,是否呼叫ENTRY_IMAGE的特定組合的項目屬性。 有兩個預期的傳回碼,從GetImage:
S_OK: 繪製示圖像 (glyph) *piImageIndex。 您可以使用這個應有的圖像 (glyph) 的項目。
S_FALSE: 設定保留空間,以讓圖像 (glyph),但不要繪出任何項目。 您可以使用這個項目沒有圖像 (glyph),但在相同的組合與圖像 (glyph) 中可能有同層級項目。
其他事項: 某些其他發生失敗。
在影像清單中的圖像 (glyph),均屬於相同的高度。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。