Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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].

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

[CLSCompliantAttribute(false)]
public class DropDownMember : IComparable

The DropDownMember type exposes the following members.

  NameDescription
Public methodDropDownMemberInitializes a new instance of the DropDownMember class.
Top

  NameDescription
Public propertyFontAttrGets or sets the font attributes to use for rendering the entry's text.
Public propertyGlyphGets or sets the image index to associate with the entry's text.
Public propertyLabelGets or sets the text to be displayed.
Public propertySpanGets or sets the text span in the source file that corresponds to the entry's text.
Top

  NameDescription
Public methodCompareTo(Object)Compares this object to the specified object.
Public methodCompareTo(Object, StringComparison)Compares one CompareTo to another with the given string comparison.
Public methodEqualsDetermines whether this object equals the specified object. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns a hash code value for this DropDownMember object. (Overrides Object.GetHashCode.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public operatorStatic memberEqualityDetermines if two DropDownMember objects are equal.
Public operatorStatic memberGreaterThanDetermines whether the first DropDownMember is greater than the second DropDownMember.
Public operatorStatic memberInequalityDetermines if two DropDownMember objects are not equal.
Public operatorStatic memberLessThanDetermines whether the first DropDownMember object is less than the second DropDownMember object.
Top

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.

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