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
声明
<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 | |
---|---|---|
VsDropdownBarClass | Create a new instance of a dropdown bar. |
Top
Methods
Name | Description | |
---|---|---|
Attach | 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. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetClient | Returns the client associated with this drop-down bar. | |
GetCurrentSelection | Returns the entry that is currently selected in a given combination. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RefreshCombo | Forces a repaint of a combo, specifying the current selection. | |
SetCurrentSelection | Sets the current selection in the given drop-down combination. | |
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.