GridCellWidget
Namespace: Hex1b.Widgets
Assembly: Hex1b.dll
Describes a cell within a , including its content widget and grid placement (row, column, spans).
public sealed record GridCellWidget : IEquatable<GridCellWidget>Inheritance
Object → GridCellWidget
Implements
Constructors
GridCellWidget(Hex1bWidget)
Describes a cell within a , including its content widget and grid placement (row, column, spans).
Parameters:
Child(Hex1bWidget): The content widget rendered inside this cell.
public GridCellWidget(Hex1bWidget Child)Properties
Child
The content widget rendered inside this cell.
Returns: Hex1bWidget
public Hex1bWidget Child { get; init; }Methods
Column(int)
Sets the column index for this cell (span of 1).
Parameters:
column(Int32):
Returns: GridCellWidget
public GridCellWidget Column(int column)ColumnSpan(int, int)
Sets the column index and span count for this cell.
Parameters:
Returns: GridCellWidget
public GridCellWidget ColumnSpan(int column, int span)FillHeight()
Sets this cell's row to fill available height.
Returns: GridCellWidget
public GridCellWidget FillHeight()FillHeight(int)
Sets this cell's row to fill available height with a weight.
Parameters:
weight(Int32):
Returns: GridCellWidget
public GridCellWidget FillHeight(int weight)FillWidth()
Sets this cell's column to fill available width.
Returns: GridCellWidget
public GridCellWidget FillWidth()FillWidth(int)
Sets this cell's column to fill available width with a weight.
Parameters:
weight(Int32):
Returns: GridCellWidget
public GridCellWidget FillWidth(int weight)Height(int)
Sets a fixed height hint for this cell's row.
Parameters:
height(Int32):
Returns: GridCellWidget
public GridCellWidget Height(int height)Row(int)
Sets the row index for this cell (span of 1).
Parameters:
row(Int32):
Returns: GridCellWidget
public GridCellWidget Row(int row)RowSpan(int, int)
Sets the row index and span count for this cell.
Parameters:
Returns: GridCellWidget
public GridCellWidget RowSpan(int row, int span)Width(int)
Sets a fixed width hint for this cell's column.
Parameters:
width(Int32):
Returns: GridCellWidget
public GridCellWidget Width(int width)Remarks
This is an intermediate builder result, not a standalone . Use fluent methods to configure placement before returning from the grid builder callback.