次の方法で共有


IVsDropdownBarClient Interface

Describes the contents of the drop-down bar combinations.

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

Syntax

'宣言
<InterfaceTypeAttribute()> _
<GuidAttribute("AEE77BDD-05C8-4DE1-B48E-1B003F49ACB7")> _
Public Interface IVsDropdownBarClient
[InterfaceTypeAttribute()]
[GuidAttribute("AEE77BDD-05C8-4DE1-B48E-1B003F49ACB7")]
public interface IVsDropdownBarClient
[InterfaceTypeAttribute()]
[GuidAttribute(L"AEE77BDD-05C8-4DE1-B48E-1B003F49ACB7")]
public interface class IVsDropdownBarClient
[<InterfaceTypeAttribute()>]
[<GuidAttribute("AEE77BDD-05C8-4DE1-B48E-1B003F49ACB7")>]
type IVsDropdownBarClient =  interface end
public interface IVsDropdownBarClient

The IVsDropdownBarClient type exposes the following members.

Methods

  Name Description
Public method GetComboAttributes Returns information about a drop-down bar/Window combination.
Public method GetComboTipText Returns the tooltip for an entire drop-down bar combination.
Public method GetEntryAttributes Returns text appearance attributes for a drop-down combination entry.
Public method GetEntryImage Returns the glyph associated with a combo entry.
Public method GetEntryText Returns the text for a combo entry.
Public method OnComboGetFocus Fires when the combo gets focus.
Public method OnItemChosen Fires when a combo item is chosen.
Public method OnItemSelected Fires when a combo item is selected.
Public method SetDropdownBar Called by the drop-down bar to hook itself up to the client.

Top

Remarks

Each combination described by IVsDropDownBarClient can contain plain text or fancy text, that is bold, underlined, or italic, can have window text font coloring or grayed out font coloring, and optionally show a small bitmap next to the item. Image drawing is negotiated using image lists, just as with the IVsCompletionSet interface. Each drop-down combination can have a different image list, with the caveat that the image lists should have images of the same height. You can have an arbitrary number of combinations, and the drop-down code makes no assumptions about their semantics.

Notes to Implementers

Implement the IVsDropdownBarClient interface to describe the contents of the drop-down bar combinations.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace