Freigeben über


ToolboxItemCollection.Item-Eigenschaft

Ruft das ToolboxItem am angegebenen Index ab.

Namespace: System.Drawing.Design
Assembly: System.Drawing (in system.drawing.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As ToolboxItem
'Usage
Dim instance As ToolboxItemCollection
Dim index As Integer
Dim value As ToolboxItem

value = instance(index)
public ToolboxItem this [
    int index
] { get; }
public:
property ToolboxItem^ default [int] {
    ToolboxItem^ get (int index);
}
/** @property */
public ToolboxItem get_Item (int index)
JScript unterstützt die Verwendung von indizierten Eigenschaften, aber nicht die Deklaration von neuen indizierten Eigenschaften.

Parameter

  • index
    Der Index des abzurufenden oder festzulegenden Objekts.

Eigenschaftenwert

Ein ToolboxItem an jedem gültigen Index in der Auflistung.

Beispiel

Im folgenden Codebeispiel wird die Verwendung des Indexers von ToolboxItemCollection veranschaulicht.

' Get the ToolboxItem at each index.
Dim item As ToolboxItem = Nothing
Dim index As Integer
For index = 0 To collection.Count - 1
    item = collection(index)
Next index
// Get the ToolboxItem at each index.
ToolboxItem item = null;
for( int index = 0; index<collection.Count; index++ )
    item = collection[index];            
// Get the ToolboxItem at each index.
ToolboxItem^ item = nullptr;
for ( int index = 0; index < collection->Count; index++ )
   item = collection[ index ];

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

ToolboxItemCollection-Klasse
ToolboxItemCollection-Member
System.Drawing.Design-Namespace