Click or drag to resize

TableLayout Class

Layout for controls in a table
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
[ContentPropertyAttribute("Rows")]
public class TableLayout : Layout

The TableLayout type exposes the following members.

Constructors
  NameDescription
Public methodTableLayout
Initializes a new instance of the TableLayout class.
Public methodTableLayout(Size)
Initializes a new instance of the TableLayout class with the specified dimensions.
Public methodTableLayout(TableRow)
Initializes a new instance of the TableLayout class with the specified rows.
Public methodTableLayout(IEnumerableTableRow)
Initializes a new instance of the TableLayout class with the specified rows.
Public methodTableLayout(Boolean, TableRow)
Initializes a new instance of the TableLayout class with the specified rows.
Public methodTableLayout(Int32, Int32)
Initializes a new instance of the TableLayout class with the specified number of columns and rows.
Top
Properties
  NameDescription
Public propertyControls
Gets an enumeration of controls that are directly contained by this container
(Overrides ContainerControls.)
Public propertyDimensions
Gets the dimensions of the table in cells.
Public propertyPadding
Gets or sets the padding bordering the table.
Public propertyRows
Gets the collection of rows in the table
Public propertySpacing
Gets or sets the horizontal and vertical spacing between each of the cells of the table.
Top
Methods
  NameDescription
Public methodAdd(Control, Point)
Adds a control to the specified location.
Public methodAdd(Control, Int32, Int32)
Adds a control to the specified x & y coordinates.
Public methodAdd(Control, Int32, Int32, Boolean, Boolean)
Adds a control to the specified x & y coordinates.
Public methodStatic memberAutoSized
Creates a table layout with an auto sized control.
Public methodEndInit
Ends the initialization when loading from xaml or other code generated scenarios
(Overrides LayoutEndInit.)
Public methodGetColumnScale
Gets the scale for the specified column.
Public methodGetRowScale
Gets the scale for the specified row.
Public methodStatic memberHorizontal(TableCell)
Creates a horizontal table layout with the specified cells.
Public methodStatic memberHorizontal(Int32, TableCell)
Creates a horizontal table layout with the specified cells.
Public methodStatic memberHorizontalScaled(TableCell)
Creates a horizontal table layout with the specified cells scaled equally.
Public methodStatic memberHorizontalScaled(Int32, TableCell)
Creates a horizontal table layout with the specified cells scaled equally.
Public methodMove(Control, Point)
Move the specified control to a new location.
Public methodMove(Control, Int32, Int32)
Moves the specified control to the new x and y coordinates.
Protected methodOnLoad
Raises the Load event, and recursed to this container's children
(Overrides ContainerOnLoad(EventArgs).)
Protected methodOnPreLoad
Raises the PreLoad event, and recurses to this container's children
(Overrides ContainerOnPreLoad(EventArgs).)
Public methodRemove
Remove the specified child control.
(Overrides ContainerRemove(Control).)
Public methodSetColumnScale
Sets the scale for the specified column.
Public methodSetRowScale
Sets the scale for the specified row.
Top
Operators
Remarks
This is similar to an html table, though each control will fill its entire cell.
See Also