public static CellsInfo ScanRow(this Grid grid, Int32 row) { if (grid == null) { throw new ArgumentNullException(nameof(grid)); } if (row < 1 || row > grid.RowCount) { throw new ArgumentOutOfRangeException(nameof(row)); } return(ScanCells(grid, GridPointGenerator.GenerateRow(row))); }
public static CellsInfo ScanSquare(this Grid grid, GridPoint point) { if (grid == null) { throw new ArgumentNullException(nameof(grid)); } if (point.Row > grid.RowCount || point.Column > grid.ColumnCount) { throw new ArgumentOutOfRangeException(nameof(point)); } return(ScanCells(grid, GridPointGenerator.GenerateSquare(point))); }
public static CellsInfo ScanColumn(this Grid grid, Int32 column) { if (grid == null) { throw new ArgumentNullException(nameof(grid)); } if (column < 1 || column > grid.ColumnCount) { throw new ArgumentOutOfRangeException(nameof(column)); } return(ScanCells(grid, GridPointGenerator.GenerateColumn(column))); }
public static NumbersBinary AppendSquare(this NumbersBinary numbers, Grid grid, GridPoint point) { if (grid == null) { throw new ArgumentNullException(nameof(grid)); } if (point.Row > grid.RowCount || point.Column > grid.ColumnCount) { throw new ArgumentOutOfRangeException(nameof(point)); } return(AppendCells(numbers, grid, GridPointGenerator.GenerateSquare(point))); }
public static NumbersBinary AppendColumn(this NumbersBinary numbers, Grid grid, Int32 column) { if (grid == null) { throw new ArgumentNullException(nameof(grid)); } if (column < 1 || column > grid.ColumnCount) { throw new ArgumentOutOfRangeException(nameof(column)); } return(AppendCells(numbers, grid, GridPointGenerator.GenerateColumn(column))); }
public static NumbersBinary AppendRow(this NumbersBinary numbers, Grid grid, Int32 row) { if (grid == null) { throw new ArgumentNullException(nameof(grid)); } if (row < 1 || row > grid.RowCount) { throw new ArgumentOutOfRangeException(nameof(row)); } return(AppendCells(numbers, grid, GridPointGenerator.GenerateRow(row))); }