DropDownMember(String, TextSpan, Int32, DROPDOWNFONTATTR) 构造函数

定义

初始化 DropDownMember 类的新实例。

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)

参数

label
String

中一个字符串,表示要在组合框中显示的文本。

span
TextSpan

中一个 TextSpan 对象,该对象指定此项表示的源中的位置。

glyph
Int32

中图像列表中的索引,指向组合框中此项所显示的标志符号。

fontAttribute
DROPDOWNFONTATTR

中枚举中的一个集合标志,用于 DROPDOWNFONTATTR 描述如何在组合框中呈现标签。

注解

这四个参数指定组合框显示条目所需的所有内容。

适用于