Skip to main content
A newer version of this page is available. .

TablePanel.Columns Property

Provides access to this panel’s column collection.

Namespace: DevExpress.Utils.Layout

Assembly: DevExpress.Utils.v19.2.dll

Declaration

[DXCategory("Layout")]
public TablePanelColumnCollection Columns { get; }

Property Value

Type Description
DevExpress.Utils.Layout.TablePanelColumnCollection

A collection of the Table Panel columns.

Remarks

The following sample illustrates how to fill the Columns collection in code.

tablePanel2.Columns.AddRange(new DevExpress.Utils.Layout.TablePanelColumn[] {
    new DevExpress.Utils.Layout.TablePanelColumn(DevExpress.Utils.Layout.TablePanelEntityStyle.Relative, 2F),
    new DevExpress.Utils.Layout.TablePanelColumn(DevExpress.Utils.Layout.TablePanelEntityStyle.Relative, 2F),
    new DevExpress.Utils.Layout.TablePanelColumn(DevExpress.Utils.Layout.TablePanelEntityStyle.Relative, 2F),
    new DevExpress.Utils.Layout.TablePanelColumn(DevExpress.Utils.Layout.TablePanelEntityStyle.Relative, 3F)
});
See Also