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

HorizontalScaled() public static method

Creates a horizontal table layout with the specified cells scaled equally.
Since table layouts are by default vertical by defining the rows and the cells for each row, it is verbose to create nested tables when you want a horizontal table. E.g. new TableLayout(new TableRow(...)). This method is used to easily create a single row table layout with a horizontal set of cells. E.g. TableLayout.HorizontalScaled(...) The difference between Horizontal and HorizontalScaled is that this method sets ScaleWidth on each cell.
public static HorizontalScaled ( int spacing ) : TableLayout
spacing int Spacing between cells
return TableLayout
		public static TableLayout HorizontalScaled(int spacing, params TableCell[] cells)
		{
			foreach (TableCell cell in cells)
				if(cell != null)
					cell.ScaleWidth = true;
			return new TableLayout(new TableRow(cells)) { Spacing = new Size(spacing, spacing) };
		}

Same methods

TableLayout::HorizontalScaled ( ) : TableLayout