Freigeben über


VsDropdownBarClass Class

Definition

Provides control of the drop-down bar at the top of a code window.

public ref class VsDropdownBarClass : Microsoft::VisualStudio::TextManager::Interop::VsDropdownBar
[Windows::Foundation::Metadata::WebHostHidden]
class VsDropdownBarClass : Microsoft::VisualStudio::TextManager::Interop::VsDropdownBar
[System.Runtime.InteropServices.ClassInterface(0)]
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("452807CC-9BFA-11D0-8C3F-00C04FC2AAE2")]
[System.Runtime.InteropServices.TypeLibType(2)]
public class VsDropdownBarClass : Microsoft.VisualStudio.TextManager.Interop.VsDropdownBar
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("452807CC-9BFA-11D0-8C3F-00C04FC2AAE2")]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
public class VsDropdownBarClass : Microsoft.VisualStudio.TextManager.Interop.VsDropdownBar
[<System.Runtime.InteropServices.ClassInterface(0)>]
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("452807CC-9BFA-11D0-8C3F-00C04FC2AAE2")>]
[<System.Runtime.InteropServices.TypeLibType(2)>]
type VsDropdownBarClass = class
    interface IVsDropdownBar
    interface VsDropdownBar
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("452807CC-9BFA-11D0-8C3F-00C04FC2AAE2")>]
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
type VsDropdownBarClass = class
    interface VsDropdownBar
    interface IVsDropdownBar
Public Class VsDropdownBarClass
Implements VsDropdownBar
Inheritance
VsDropdownBarClass
Attributes
Implements

Remarks

You cannot create an instance of this class with the new keyword. Instead, you must get the ILocalRegistry object and create the object with CreateInstance. The MPF wraps this method with CreateInstance.

Constructors

VsDropdownBarClass()

Create a new instance of a dropdown bar.

Methods

Attach(IntPtr, Int32, IVsDropdownBarClient)

Creates the window and drop-down combination and sets up a link between the drop-down bar and its client.

Detach()

Breaks the link between the drop-down bar and its client.

GetClient(IVsDropdownBarClient)

Returns the client associated with this drop-down bar.

GetCurrentSelection(Int32, Int32)

Returns the entry that is currently selected in a given combination.

RefreshCombo(Int32, Int32)

Forces a repaint of a combo, specifying the current selection.

SetCurrentSelection(Int32, Int32)

Sets the current selection in the given drop-down combination.

Applies to