TableLayoutStyleCollection.Item Property (Int32)


Gets or sets TableLayoutStyle at the specified index.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public TableLayoutStyle this[
	int index
] { get; set; }


Type: System.Int32

The zero-based index of the TableLayoutStyle to get or set.

Property Value

Type: System.Windows.Forms.TableLayoutStyle

A TableLayoutStyle at the specified index.

Exception Condition

The property value is already assigned to another owner. You must first remove it from its current location or clone it.

Only 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.

.NET Framework
Available since 2.0
Return to top