初始化 DropDownMember 类的新实例。
命名空间: Microsoft.VisualStudio.Package
程序集: Microsoft.VisualStudio.Package.LanguageService(在 Microsoft.VisualStudio.Package.LanguageService.dll 中)
Microsoft.VisualStudio.Package.LanguageService.10.0(在 Microsoft.VisualStudio.Package.LanguageService.10.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService.11.0(在 Microsoft.VisualStudio.Package.LanguageService.11.0.dll 中)
Microsoft.VisualStudio.Package.LanguageService.9.0(在 Microsoft.VisualStudio.Package.LanguageService.9.0.dll 中)
语法
声明
Public Sub New ( _
label As String, _
span As TextSpan, _
glyph As Integer, _
fontAttribute As DROPDOWNFONTATTR _
)
public DropDownMember(
string label,
TextSpan span,
int glyph,
DROPDOWNFONTATTR fontAttribute
)
参数
- label
类型:System.String
[in] 表示文本的字符串将显示组合框。
- span
类型:Microsoft.VisualStudio.TextManager.Interop.TextSpan
[in] 在源指定位置此项的 TextSpan 对象表示。
- glyph
类型:System.Int32
[in] 索引到图像中列出有关演示此项在组合框的标志符号。
- fontAttribute
类型:Microsoft.VisualStudio.TextManager.Interop.DROPDOWNFONTATTR
[in] 从描述如何的 DROPDOWNFONTATTR 枚举的集合标志呈现在组合框的标签。
备注
这四个参数指定组合框所需的所有内容显示项。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。