'Declaration Public Overridable ReadOnly Property Selection As CellRange
public virtual CellRange Selection {get;}
'Declaration Public Overridable ReadOnly Property Selection As CellRange
public virtual CellRange Selection {get;}
int total = 0; CellRange rg = flex.Selection; for (int r = rg.r1; r <= rg.r2; r++) for (int c = rg.c1; c <= rg.c2; c++) total += (int)flex[r,c]; Console.WriteLine("The total is: {0}", total);