Share via


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.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
<CLSCompliantAttribute(False)> _
Public Class DropDownMember _
    Implements IComparable
[CLSCompliantAttribute(false)]
public class DropDownMember : IComparable
[CLSCompliantAttribute(false)]
public ref class DropDownMember : IComparable
[<CLSCompliantAttribute(false)>]
type DropDownMember =  
    class
        interface IComparable
    end
public class DropDownMember implements IComparable

The DropDownMember type exposes the following members.

Constructors

  Name Description
Public method DropDownMember Initializes a new instance of the DropDownMember class.

Top

Properties

  Name Description
Public property FontAttr Gets or sets the font attributes to use for rendering the entry's text.
Public property Glyph Gets or sets the image index to associate with the entry's text.
Public property Label Gets or sets the text to be displayed.
Public property Span Gets or sets the text span in the source file that corresponds to the entry's text.

Top

Methods

  Name Description
Public method CompareTo(Object) Compares this object to the specified object.
Public method CompareTo(Object, StringComparison) Compares one CompareTo to another with the given string comparison.
Public method Equals Determines whether this object equals the specified object. (Overrides Object.Equals(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 GetHashCode Returns a hash code value for this DropDownMember object. (Overrides Object.GetHashCode().)
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 ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Operators

  Name Description
Public operatorStatic member Equality Determines if two DropDownMember objects are equal.
Public operatorStatic member GreaterThan Determines whether the first DropDownMember is greater than the second DropDownMember.
Public operatorStatic member Inequality Determines if two DropDownMember objects are not equal.
Public operatorStatic member 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.

See Also

Reference

Microsoft.VisualStudio.Package Namespace