TableLayoutStyleCollection.Item[Int32] TableLayoutStyleCollection.Item[Int32] TableLayoutStyleCollection.Item[Int32] TableLayoutStyleCollection.Item[Int32] Property

定义

获取或设置指定索引处的 TableLayoutStyleGets or sets TableLayoutStyle at the specified index.

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 Int32 Int32 Int32

要获取或设置的 TableLayoutStyle 的从零开始的索引。The zero-based index of the TableLayoutStyle to get or set.

属性值

异常

该属性值已分配给另外一个所有者。The property value is already assigned to another owner. 必须首先将其从当前位置移除或将其克隆。You must first remove it from its current location or clone it.

注解

只有TableLayoutStyle一个派生ColumnStyle类型或RowStyle可以存储在中TableLayoutStyleCollectionOnly one of the derived TableLayoutStyle types, ColumnStyle or RowStyle, can be stored in a TableLayoutStyleCollection.

样式的实例只能与单个容器关联。An instance of a style can be associated only with a single container.

适用于

另请参阅