Freigeben über


VsDropdownBarClass Class

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

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TextManager.Interop.VsDropdownBarClass

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

Syntax

'Declaration
<GuidAttribute("452807CC-9BFA-11D0-8C3F-00C04FC2AAE2")> _
<ClassInterfaceAttribute()> _
Public Class VsDropdownBarClass _
    Implements IVsDropdownBar, VsDropdownBar
[GuidAttribute("452807CC-9BFA-11D0-8C3F-00C04FC2AAE2")]
[ClassInterfaceAttribute()]
public class VsDropdownBarClass : IVsDropdownBar, 
    VsDropdownBar
[GuidAttribute(L"452807CC-9BFA-11D0-8C3F-00C04FC2AAE2")]
[ClassInterfaceAttribute()]
public ref class VsDropdownBarClass : IVsDropdownBar, 
    VsDropdownBar
[<GuidAttribute("452807CC-9BFA-11D0-8C3F-00C04FC2AAE2")>]
[<ClassInterfaceAttribute()>]
type VsDropdownBarClass =  
    class
        interface IVsDropdownBar
        interface VsDropdownBar
    end
public class VsDropdownBarClass implements IVsDropdownBar, VsDropdownBar

The VsDropdownBarClass type exposes the following members.

Constructors

  Name Description
Public method VsDropdownBarClass Create a new instance of a dropdown bar.

Top

Methods

  Name Description
Public method Attach Creates the window and drop-down combination and sets up a link between the drop-down bar and its client.
Public method Detach Breaks the link between the drop-down bar and its client.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetClient Returns the client associated with this drop-down bar.
Public method GetCurrentSelection Returns the entry that is currently selected in a given combination.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method RefreshCombo Forces a repaint of a combo, specifying the current selection.
Public method SetCurrentSelection Sets the current selection in the given drop-down combination.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TextManager.Interop Namespace