Condividi tramite


IVsDropdownBarClient.GetComboAttributes Method

Returns information about a drop-down bar/Window combination.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

Syntax

'Declaration
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

Parameters

  • iCombo
    Type: System.Int32

    [in] The drop-down bar/Window combination.

  • pcEntries
    Type: System.UInt32%

    [in] Count of entries in the combination.

  • phImageList
    Type: System.IntPtr%

    [out] Handle to an HIMAGELIST.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From textmgr.idl:

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

Any of the out parameters, phImageList, puEntryType, and pcEntries, can be nulla null reference (Nothing in Visual Basic) if the associated information is not needed.

Note

phImageList from GetComboAttributes cannot be marshaled across machines.

.NET Framework Security

See Also

Reference

IVsDropdownBarClient Interface

Microsoft.VisualStudio.TextManager.Interop Namespace