Eto.Forms.TableLayout.SetColumnScale C# (CSharp) Метод

SetColumnScale() публичный Метод

Sets the scale for the specified column.
public SetColumnScale ( int column, bool scale = true ) : void
column int Column to set the scale for.
scale bool If set to true scale, otherwise size to preferred size of controls in the column.
Результат void
		public void SetColumnScale(int column, bool scale = true)
		{
			Handler.SetColumnScale(column, scale);
		}

Usage Example

Пример #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::SetColumnScale