콘텐츠로 이동

Grid class

이 콘텐츠는 아직 번역되지 않았습니다.

A panel that arranges children in a grid of rows and columns.

Guide: C# Markup reference: Panel

public class Grid : Panel
name description
Grid() Initializes a grid that lays out as one star row and column until definitions are added.
AutoIndexing { get; set; } Gets or sets whether children without an explicit row and column are placed in the first free cell; the default is true.
ColumnDefinitions { get; } Gets the column definitions; with none, the grid lays out as a single star column.
RowDefinitions { get; } Gets the row definitions; with none, the grid lays out as a single star row.
ShareStarSize { get; set; } Gets or sets whether all star rows and all star columns take the measure size of the largest star track on their axis, scaled by weight.
ShowGridLine { get; set; } Gets or sets whether lines are drawn between rows and columns, for layout debugging.
Spacing { get; set; } Gets or sets the spacing between rows and between columns in DIPs.
static readonly AutoIndexingProperty Whether children without an explicit row and column are placed in the first free cell; the default is true.
static readonly ShareStarSizeProperty Whether all star rows and all star columns take the measure size of the largest star track on their axis, scaled by weight.
static readonly ShowGridLineProperty Whether lines are drawn between rows and columns, for layout debugging.
static readonly SpacingProperty The spacing between rows and between columns in DIPs.
static GetColumn(…) Gets the column index of an element.
static GetColumnSpan(…) Gets the column span of an element.
static GetRow(…) Gets the row index of an element.
static GetRowSpan(…) Gets the row span of an element.
static SetColumn(…) Sets the column index for an element.
static SetColumnSpan(…) Sets the column span for an element.
static SetRow(…) Sets the row index for an element.
static SetRowSpan(…) Sets the row span for an element.