Condividi tramite


DropDownMember(String, TextSpan, Int32, DROPDOWNFONTATTR) Constructor

Definition

Initializes a new instance of the DropDownMember class.

public:
 DropDownMember(System::String ^ label, Microsoft::VisualStudio::TextManager::Interop::TextSpan span, int glyph, Microsoft::VisualStudio::TextManager::Interop::DROPDOWNFONTATTR fontAttribute);
public:
 DropDownMember(Platform::String ^ label, Microsoft::VisualStudio::TextManager::Interop::TextSpan span, int glyph, Microsoft::VisualStudio::TextManager::Interop::DROPDOWNFONTATTR fontAttribute);
 DropDownMember(std::wstring const & label, Microsoft::VisualStudio::TextManager::Interop::TextSpan span, int glyph, Microsoft::VisualStudio::TextManager::Interop::DROPDOWNFONTATTR fontAttribute);
public DropDownMember (string label, Microsoft.VisualStudio.TextManager.Interop.TextSpan span, int glyph, Microsoft.VisualStudio.TextManager.Interop.DROPDOWNFONTATTR fontAttribute);
new Microsoft.VisualStudio.Package.DropDownMember : string * Microsoft.VisualStudio.TextManager.Interop.TextSpan * int * Microsoft.VisualStudio.TextManager.Interop.DROPDOWNFONTATTR -> Microsoft.VisualStudio.Package.DropDownMember
Public Sub New (label As String, span As TextSpan, glyph As Integer, fontAttribute As DROPDOWNFONTATTR)

Parameters

label
String

[in] A string representing the text to be shown in the combo box.

span
TextSpan

[in] A TextSpan object that specifies the location in the source this entry represents.

glyph
Int32

[in] An index into an image list to a glyph that is shown with this entry in the combo box.

fontAttribute
DROPDOWNFONTATTR

[in] A collection flags from the DROPDOWNFONTATTR enumeration describing how to render the label in the combo box.

Remarks

These four parameters specify everything needed by the combo box to show an entry.

Applies to