'Declaration Public ReadOnly Property Cells As IEnumerable(Of CellRange)
public IEnumerable<CellRange> Cells {get;}
'Declaration Public ReadOnly Property Cells As IEnumerable(Of CellRange)
public IEnumerable<CellRange> Cells {get;}
var total = 0; foreach (var cell in rng.Cells) { var value = grid[cell.Row, cell.Column]; if (value is int) { total += (int)value; } }