提供该下拉栏的控件在代码窗口的顶部。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
<GuidAttribute("D7820968-4CF8-4760-B633-570282E5F66D")> _
<InterfaceTypeAttribute()> _
Public Interface IVsDropdownBar
[GuidAttribute("D7820968-4CF8-4760-B633-570282E5F66D")]
[InterfaceTypeAttribute()]
public interface IVsDropdownBar
[GuidAttribute(L"D7820968-4CF8-4760-B633-570282E5F66D")]
[InterfaceTypeAttribute()]
public interface class IVsDropdownBar
[<GuidAttribute("D7820968-4CF8-4760-B633-570282E5F66D")>]
[<InterfaceTypeAttribute()>]
type IVsDropdownBar = interface end
public interface IVsDropdownBar
IVsDropdownBar 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
Attach | 创建窗口和下拉组合并设置下拉栏及其客户端之间的链接。 |
![]() |
Detach | 损坏链接在该下拉栏及其客户端之间。 |
![]() |
GetClient | 返回客户端与此下拉栏。 |
![]() |
GetCurrentSelection | 返回在特定组合当前选定的项。 |
![]() |
RefreshCombo | 强制重新绘制组合,指定新的选择。 |
![]() |
SetCurrentSelection | 将给定下拉组合的当前选定内容 |
页首
备注
使用 IVsDropDownBar 强制下拉栏 " 的组合内容的刷新或更改选择一个组合。
对实现者的说明
实现 IVsDropdownBar 与一个下拉菜单栏直接进行通信。 若要获取 IVsDropdownBar,请参见 IVsDropdownBarManager。