OptionsTableLayoutItem.ColumnIndex Property

Gets or sets the index of the column in which the current layout item is displayed.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v20.2.dll

Declaration

[Browsable(true)]
[DefaultValue(0)]
[XtraSerializableProperty]
public virtual int ColumnIndex { get; set; }
<Browsable(True)>
<DefaultValue(0)>
<XtraSerializableProperty>
Public Overridable Property ColumnIndex As Integer

Property Value

Type Default Description
Int32

0

The zero-based index that specifies the layout item's column position within the table layout.

Property Paths

You can access this nested property as listed below:

Remarks

Layout items are positioned within a table layout according to their OptionsTableLayoutItem.RowIndex and ColumnIndex properties. The OptionsTableLayoutItem.RowSpan and OptionsTableLayoutItem.ColumnSpan settings define the number of columns and rows occupied by an item.

The following image demonstrates the table layout that consists of five items arranged in three columns and three rows.

LayoutControl_TableLayoutExampleDetails

NOTE

If you specify the same target table cells for two or more layout items, these items will overlap.

You cannot set the ColumnIndex property to a value that is less than 0 or exceeds the number of columns within the table layout.

See Also