Eto.Forms.TableLayout.Add C# (CSharp) Method

Add() public method

Adds a control to the specified x & y coordinates.
If a control already exists in the location, it is replaced. Only one control can exist in a cell. The xscale and yscale parameters are to easily set the scaling for the current row/column while adding the control.
public Add ( Control control, int x, int y, bool xscale, bool yscale ) : void
control Control Control to add.
x int The x coordinate.
y int The y coordinate.
xscale bool If set to true xscale.
yscale bool If set to true yscale.
return void
		public void Add(Control control, int x, int y, bool xscale, bool yscale)
		{
			SetColumnScale(x, xscale);
			SetRowScale(y, yscale);
			Add(control, x, y);
		}

Same methods

TableLayout::Add ( Control control, Point location ) : void
TableLayout::Add ( Control control, int x, int y ) : void

Usage Example

Ejemplo n.º 1
0
		public SpacingSection ()
		{
			var layout = new TableLayout (this, 3, 1);

			layout.Add (NoSpacing (), 0, 0, true, true);
			layout.Add (NoPadding (), 1, 0, true, true);
			layout.Add (DifferentSizes (), 2, 0, true, true);
		}
All Usage Examples Of Eto.Forms.TableLayout::Add