Class GridLayout
The GridLayout element of a view file: children in rows and columns.
public class GridLayout : LayoutControl, IHasControls
- Inheritance
-
GridLayout
- Implements
- Inherited Members
Properties
CellSpacing
The space in pixels between cells, between rows and between columns. Zero by default.
[Range(0, 2147483647)]
public int CellSpacing { get; set; }
Property Value
Cells
The cells of the grid, each with its row, column and control.
public List<GridCell> Cells { get; set; }
Property Value
ColumnSpacing
The space in pixels between columns. Overrides CellSpacing for columns when given.
[Range(0, 2147483647)]
public int? ColumnSpacing { get; set; }
Property Value
- int?
ColumnSpacingValue
The ColumnSpacing attribute's text form. Use ColumnSpacing in code.
[Range(0, 2147483647)]
public int ColumnSpacingValue { get; set; }
Property Value
ColumnSpacingValueSpecified
Whether ColumnSpacing is set, so the attribute is written. Used by XML serialization.
public bool ColumnSpacingValueSpecified { get; set; }
Property Value
Columns
The number of columns in the grid. One by default.
[Range(1, 2147483647)]
public int Columns { get; set; }
Property Value
HorizontalAlignment
How the controls in the grid are aligned horizontally. Centered by default.
[EnumDataType(typeof(HorizontalAlignment))]
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
Padding
The padding inside the grid, around its cells. Zero on every side by default.
public Spacing Padding { get; set; }
Property Value
PaddingValue
The Padding attribute's text form. Use Padding in code.
public string PaddingValue { get; set; }
Property Value
RowSpacing
The space in pixels between rows. Overrides CellSpacing for rows when given.
[Range(0, 2147483647)]
public int? RowSpacing { get; set; }
Property Value
- int?
RowSpacingValue
The RowSpacing attribute's text form. Use RowSpacing in code.
[Range(0, 2147483647)]
public int RowSpacingValue { get; set; }
Property Value
RowSpacingValueSpecified
Whether RowSpacing is set, so the attribute is written. Used by XML serialization.
public bool RowSpacingValueSpecified { get; set; }
Property Value
Rows
The number of rows in the grid. One by default.
[Range(1, 2147483647)]
public int Rows { get; set; }
Property Value
Size
The grid's size in pixels.
public Size Size { get; set; }
Property Value
SizeValue
The Size attribute's text form. See Size.
public string SizeValue { get; set; }
Property Value
VerticalAlignment
How the controls in the grid are aligned vertically. Top by default.
[EnumDataType(typeof(VerticalAlignment))]
public VerticalAlignment VerticalAlignment { get; set; }