Skip to content

GridCellWidget

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

Describes a cell within a , including its content widget and grid placement (row, column, spans).

csharp
public sealed record GridCellWidget : IEquatable<GridCellWidget>

Inheritance

ObjectGridCellWidget

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.
csharp
public GridCellWidget(Hex1bWidget Child)

Properties

Child

The content widget rendered inside this cell.

Returns: Hex1bWidget

csharp
public Hex1bWidget Child { get; init; }

Methods

Column(int)

Sets the column index for this cell (span of 1).

Parameters:

Returns: GridCellWidget

csharp
public GridCellWidget Column(int column)

ColumnSpan(int, int)

Sets the column index and span count for this cell.

Parameters:

  • column (Int32): The zero-based starting column.
  • span (Int32): The number of columns to span.

Returns: GridCellWidget

csharp
public GridCellWidget ColumnSpan(int column, int span)

FillHeight()

Sets this cell's row to fill available height.

Returns: GridCellWidget

csharp
public GridCellWidget FillHeight()

FillHeight(int)

Sets this cell's row to fill available height with a weight.

Parameters:

Returns: GridCellWidget

csharp
public GridCellWidget FillHeight(int weight)

FillWidth()

Sets this cell's column to fill available width.

Returns: GridCellWidget

csharp
public GridCellWidget FillWidth()

FillWidth(int)

Sets this cell's column to fill available width with a weight.

Parameters:

Returns: GridCellWidget

csharp
public GridCellWidget FillWidth(int weight)

Height(int)

Sets a fixed height hint for this cell's row.

Parameters:

Returns: GridCellWidget

csharp
public GridCellWidget Height(int height)

Row(int)

Sets the row index for this cell (span of 1).

Parameters:

Returns: GridCellWidget

csharp
public GridCellWidget Row(int row)

RowSpan(int, int)

Sets the row index and span count for this cell.

Parameters:

  • row (Int32): The zero-based starting row.
  • span (Int32): The number of rows to span.

Returns: GridCellWidget

csharp
public GridCellWidget RowSpan(int row, int span)

Width(int)

Sets a fixed width hint for this cell's column.

Parameters:

Returns: GridCellWidget

csharp
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.

Released under the MIT License.