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

Move() public method

Moves the specified control to the new x and y coordinates.
If a control already exists in the new location, it will be replaced. Only one control can exist in a cell. The old location of the control will have an empty space.
public Move ( Control control, int x, int y ) : void
control Control Control to move.
x int The new x coordinate.
y int The new y coordinate.
return void
		public void Move(Control control, int x, int y)
		{
			var cell = Rows.SelectMany(r => r.Cells).FirstOrDefault(r => r.Control == control);
			if (cell != null)
				cell.Control = null;

			cell = Rows[y].Cells[x];
			var old = cell.Control;
			if (old != null)
				RemoveParent(old);
			cell.Control = control;
			Handler.Move(control, x, y);
		}

Same methods

TableLayout::Move ( Control control, Point location ) : void