ComponentOne Studio for WinRT XAML
Cells プロパティ (CellRange)
使用例 

この CellRange 内のセルの反復処理に使用できる System.Collections.IEnumerable を取得します。
構文
'宣言
 
Public ReadOnly Property Cells As System.Collections.Generic.IEnumerable(Of CellRange)
public System.Collections.Generic.IEnumerable<CellRange> Cells {get;}
使用例
以下のコードは、Cells プロパティを使用して、指定されたセル範囲にすべての整数値を追加する方法を示します。
var total = 0;
foreach (var cell in rng.Cells)
{
  var value = grid[cell.Row, cell.Column];
  if (value is int)
  {
    total += (int)value;
  }
}
参照

CellRange 構造体
CellRange メンバ

 

 


Copyright © GrapeCity inc. All rights reserved.