TableLayoutStyleCollection.Item[Int32] 屬性

定義

取得或設定指定索引上的 TableLayoutStyle

public:
 property System::Windows::Forms::TableLayoutStyle ^ default[int] { System::Windows::Forms::TableLayoutStyle ^ get(int index); void set(int index, System::Windows::Forms::TableLayoutStyle ^ value); };
public System.Windows.Forms.TableLayoutStyle this[int index] { get; set; }
member this.Item(int) : System.Windows.Forms.TableLayoutStyle with get, set
Default Public Property Item(index As Integer) As TableLayoutStyle

參數

index
Int32

要取得或設定的 TableLayoutStyle 的以零起始的索引。

屬性值

指定索引處的 TableLayoutStyle

例外狀況

此屬性值已指派給另一位擁有人。 必須先將其從目前位置移除或複製。

備註

只有其中一個衍生 TableLayoutStyle 型別或 ColumnStyleRowStyle 可以儲存在 中 TableLayoutStyleCollection

樣式的實例只能與單一容器相關聯。

適用於

另請參閱