ToolboxItemCollection.Item[Int32] Свойство

Определение

Возвращает объект ToolboxItem по указанному индексу.

public:
 property System::Drawing::Design::ToolboxItem ^ default[int] { System::Drawing::Design::ToolboxItem ^ get(int index); };
public System.Drawing.Design.ToolboxItem this[int index] { get; }
member this.Item(int) : System.Drawing.Design.ToolboxItem
Default Public ReadOnly Property Item(index As Integer) As ToolboxItem

Параметры

index
Int32

Индекс объекта, который требуется возвратить или задать.

Значение свойства

Объект ToolboxItem для каждого допустимого в коллекции индекса.

Примеры

В следующем примере кода демонстрируется использование индексатора ToolboxItemCollectionобъекта .

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

Применяется к