/// <summary> /// Add a new cell to the parent grid, you can specify row and columns using dedicated extension methods /// </summary> /// <example> /// <code> /// .Cell(GridCellExtensions.Create() /// .Row(1).Column(2).Span(2, 1) /// .Contains( ...)) /// </code> /// </example> public static IFluentItem <Grid> Cell(this IFluentItem <Grid> fluentItem, IGridCell cell) { (fluentItem as GridFluentItem)?.SetupCell(cell); cell.HostInGrid(fluentItem.Element); fluentItem.AddChild(cell.Content); return(fluentItem); }