Compartilhar via


DropDownMember Class

Definition

Important

This API is not CLS-compliant.

Represents a single entry in a combo box on a drop-down bar.

public ref class DropDownMember : IComparable
[System.CLSCompliant(false)]
public class DropDownMember : IComparable
public class DropDownMember : IComparable
[<System.CLSCompliant(false)>]
type DropDownMember = class
    interface IComparable
type DropDownMember = class
    interface IComparable
Public Class DropDownMember
Implements IComparable
Inheritance
DropDownMember
Attributes
Implements

Remarks

This class is used by the TypeAndMemberDropdownBars class to represent entries on the combo boxes shown on an IVsDropdownBar object.

Notes to Inheritors

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(LanguageService, IVsTextView, Int32, Int32, ArrayList, ArrayList, Int32, Int32) 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.

Constructors

DropDownMember(String, TextSpan, Int32, DROPDOWNFONTATTR)

Initializes a new instance of the DropDownMember class.

Properties

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.

Methods

CompareTo(Object, StringComparison)

Compares one CompareTo to another with the given string comparison.

CompareTo(Object)

Compares this object to the specified object.

Equals(Object)

Determines whether this object equals the specified object.

GetHashCode()

Returns a hash code value for this DropDownMember object.

Operators

Equality(DropDownMember, DropDownMember)

Determines if two DropDownMember objects are equal.

GreaterThan(DropDownMember, DropDownMember)

Determines whether the first DropDownMember is greater than the second DropDownMember.

Inequality(DropDownMember, DropDownMember)

Determines if two DropDownMember objects are not equal.

LessThan(DropDownMember, DropDownMember)

Determines whether the first DropDownMember object is less than the second DropDownMember object.

Applies to