DropDownMember Constructor
Initializes a new instance of the DropDownMember class.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
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.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'Declaración
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
)
Parameters
- label
Type: System.String
[in] A string representing the text to be shown in the combo box.
- span
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan
[in] A TextSpan object that specifies the location in the source this entry represents.
- glyph
Type: System.Int32
[in] An index into an image list to a glyph that is shown with this entry in the combo box.
- fontAttribute
Type: Microsoft.VisualStudio.TextManager.Interop.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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.