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

SetRowScale() public method

Sets the scale for the specified row.
public SetRowScale ( int row, bool scale = true ) : void
row int Row to set the scale for.
scale bool If set to true scale, otherwise size to preferred size of controls in the row.
return void
		public void SetRowScale(int row, bool scale = true)
		{
			Handler.SetRowScale(row, scale);
		}

Usage Example

Ejemplo n.º 1
0
		public ScrollableSection()
		{
			var layout = new TableLayout(4, 2);
			layout.Spacing = new Size(5, 5);
			layout.Padding = new Padding(10);

			layout.SetColumnScale(1);
			layout.SetColumnScale(3);
			layout.SetRowScale(0);
			layout.SetRowScale(1);

			layout.Add(new Label { Text = "Default" }, 0, 0);
			layout.Add(DefaultScrollable(), 1, 0);

			layout.Add(new Label { Text = "No Border" }, 2, 0);
			layout.Add(NoBorderScrollable(), 3, 0);

			layout.Add(new Label { Text = "Bezeled" }, 0, 1);
			layout.Add(BezelScrollable(), 1, 1);

			layout.Add(new Label { Text = "Line" }, 2, 1);
			layout.Add(LineScrollable(), 3, 1);

			Content = layout;
		}
All Usage Examples Of Eto.Forms.TableLayout::SetRowScale