共用方式為


IVsDropdownBarClient.GetComboAttributes 方法

傳回有關下拉式列 / 視窗組合。

命名空間:  Microsoft.VisualStudio.TextManager.Interop
組件:  Microsoft.VisualStudio.TextManager.Interop (在 Microsoft.VisualStudio.TextManager.Interop.dll 中)

語法

'宣告
Function GetComboAttributes ( _
    iCombo As Integer, _
    <OutAttribute> ByRef pcEntries As UInteger, _
    <OutAttribute> ByRef puEntryType As UInteger, _
    <OutAttribute> ByRef phImageList As IntPtr _
) As Integer
int GetComboAttributes(
    int iCombo,
    out uint pcEntries,
    out uint puEntryType,
    out IntPtr phImageList
)
int GetComboAttributes(
    [InAttribute] int iCombo, 
    [OutAttribute] unsigned int% pcEntries, 
    [OutAttribute] unsigned int% puEntryType, 
    [OutAttribute] IntPtr% phImageList
)
abstract GetComboAttributes : 
        iCombo:int * 
        pcEntries:uint32 byref * 
        puEntryType:uint32 byref * 
        phImageList:IntPtr byref -> int
function GetComboAttributes(
    iCombo : int, 
    pcEntries : uint, 
    puEntryType : uint, 
    phImageList : IntPtr
) : int

參數

  • iCombo
    類型:Int32

    [in]下拉式列 / 視窗組合。

  • pcEntries
    類型:UInt32%

    [in]組合中的項目計數。

  • puEntryType
    類型:UInt32%

    [] out指定繪圖的通訊協定的組合。 值取自DROPDOWNENTRYTYPE列舉型別。

  • phImageList
    類型:IntPtr%

    [] outHIMAGELIST 的控制代碼。

傳回值

類型:Int32
如果此方法將會成功,則會傳回S_OK。如果失敗,它就會傳回錯誤碼。

備註

COM 簽章

從 textmgr.idl:

HRESULT IVsDropdownBarClient::GetComboAttributes(
   [in] long iCombo,
   [out] ULONG *pcEntries,
   [out] ULONG *puEntryType
);

任何 out 參數, phImageList, puEntryType,以及 pcEntries,可能會nullnull 參考 (即 Visual Basic 中的 Nothing)如果不需要的相關的資訊。

注意事項注意事項

phImageList從GetComboAttributes無法封送處理跨機器。

.NET Framework 安全性

請參閱

參考

IVsDropdownBarClient 介面

Microsoft.VisualStudio.TextManager.Interop 命名空間