DropDownMember Class
Represents a single entry in a combo box on a drop-down bar.
This API is not CLS-compliant. The CLS-compliant alternative is [None].
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.Package.DropDownMember
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣告
<CLSCompliantAttribute(False)> _
Public Class DropDownMember _
Implements IComparable
[CLSCompliantAttribute(false)]
public class DropDownMember : IComparable
The DropDownMember type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DropDownMember | Initializes a new instance of the DropDownMember class. |
Top
Properties
Name | Description | |
---|---|---|
FontAttr | Gets or sets the font attributes to use for rendering the entry's text. | |
Glyph | Gets or sets the image index to associate with the entry's text. | |
Label | Gets or sets the text to be displayed. | |
Span | Gets or sets the text span in the source file that corresponds to the entry's text. |
Top
Methods
Name | Description | |
---|---|---|
CompareTo(Object) | Compares this object to the specified object. | |
CompareTo(Object, StringComparison) | Compares one CompareTo to another with the given string comparison. | |
Equals | Determines whether this object equals the specified object. (Overrides Object.Equals(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.) | |
GetHashCode | Returns a hash code value for this DropDownMember object. (Overrides Object.GetHashCode().) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Operators
Name | Description | |
---|---|---|
Equality | Determines if two DropDownMember objects are equal. | |
GreaterThan | Determines whether the first DropDownMember is greater than the second DropDownMember. | |
Inequality | Determines if two DropDownMember objects are not equal. | |
LessThan | Determines whether the first DropDownMember object is less than the second DropDownMember object. |
Top
Remarks
This class is used by the TypeAndMemberDropdownBars class to represent entries on the combo boxes shown on an IVsDropdownBar object.
Notes to Implementers
This class is self-contained and does not need to be derived from.
Notes to Callers
This class is instantiated in your implementation of the OnSynchronizeDropdowns method in your derived version of the TypeAndMemberDropdownBars class. The base TypeAndMemberDropdownBars class contains two ArrayLists that hold DropDownMember classes, one for each entry to be shown in the combo boxes.
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.