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
声明
Function GetComboAttributes ( _
iCombo As Integer, _
<OutAttribute> ByRef pcEntries As UInteger, _
<OutAttribute> ByRef puEntryType As UInteger, _
<OutAttribute> ByRef phImageList As IntPtr _
) As Integer
用法
Dim instance As IVsDropdownBarClient
Dim iCombo As Integer
Dim pcEntries As UInteger
Dim puEntryType As UInteger
Dim phImageList As IntPtr
Dim returnValue As Integer
returnValue = instance.GetComboAttributes(iCombo, _
pcEntries, puEntryType, phImageList)
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.
- puEntryType
Type: System.UInt32%
[out] Specifies drawing protocol for a combination. Values are taken from the DROPDOWNENTRYTYPE enumeration.
- 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.
备注
phImageList from GetComboAttributes cannot be marshaled across machines.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.