Table of Contents

Class GridLayout

Namespace
BSGameLib.UI.Builder.Models
Assembly
BSGameLib.UI.dll

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

int

Cells

The cells of the grid, each with its row, column and control.

public List<GridCell> Cells { get; set; }

Property Value

List<GridCell>

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

int

ColumnSpacingValueSpecified

Whether ColumnSpacing is set, so the attribute is written. Used by XML serialization.

public bool ColumnSpacingValueSpecified { get; set; }

Property Value

bool

Columns

The number of columns in the grid. One by default.

[Range(1, 2147483647)]
public int Columns { get; set; }

Property Value

int

HorizontalAlignment

How the controls in the grid are aligned horizontally. Centered by default.

[EnumDataType(typeof(HorizontalAlignment))]
public HorizontalAlignment HorizontalAlignment { get; set; }

Property Value

HorizontalAlignment

Padding

The padding inside the grid, around its cells. Zero on every side by default.

public Spacing Padding { get; set; }

Property Value

Spacing

PaddingValue

The Padding attribute's text form. Use Padding in code.

public string PaddingValue { get; set; }

Property Value

string

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

int

RowSpacingValueSpecified

Whether RowSpacing is set, so the attribute is written. Used by XML serialization.

public bool RowSpacingValueSpecified { get; set; }

Property Value

bool

Rows

The number of rows in the grid. One by default.

[Range(1, 2147483647)]
public int Rows { get; set; }

Property Value

int

Size

The grid's size in pixels.

public Size Size { get; set; }

Property Value

Size

SizeValue

The Size attribute's text form. See Size.

public string SizeValue { get; set; }

Property Value

string

VerticalAlignment

How the controls in the grid are aligned vertically. Top by default.

[EnumDataType(typeof(VerticalAlignment))]
public VerticalAlignment VerticalAlignment { get; set; }

Property Value

VerticalAlignment