GridItemCollection.Item[] 屬性

定義

從集合中取得 GridItem

多載

Item[Int32]

取得指定索引處的 GridItem

Item[String]

取得具有相符標記的 GridItem

Item[Int32]

取得指定索引處的 GridItem

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

參數

index
Int32

要傳回之格線項目的索引。

屬性值

GridItem

指定之索引處的 GridItem

適用於

Item[String]

取得具有相符標記的 GridItem

public:
 property System::Windows::Forms::GridItem ^ default[System::String ^] { System::Windows::Forms::GridItem ^ get(System::String ^ label); };
public System.Windows.Forms.GridItem this[string label] { get; }
public System.Windows.Forms.GridItem? this[string label] { get; }
member this.Item(string) : System.Windows.Forms.GridItem
Default Public ReadOnly Property Item(label As String) As GridItem

參數

label
String

要與方格專案標籤相符的字串值。

屬性值

GridItem

標記與 label 參數相符的格線項目。

適用於