PowerTools SPREAD for Windows Forms 10.0J
GetMergeCells メソッド


ビューのすべてのマージされたセル範囲を返します。
構文
'Declaration
 
Public Function GetMergeCells() As ArrayList
'使用法
 
Dim instance As SpreadView
Dim value As ArrayList
 
value = instance.GetMergeCells()
public ArrayList GetMergeCells()

戻り値の型

CellRangeオブジェクトの配列リスト
次のサンプルコードは、GetMergeCellsメソッドを使用します。
fpSpread1.Sheets[0].SetRowMerge(-1, FarPoint.Win.Spread.Model.MergePolicy.Always);
fpSpread1.Sheets[0].SetColumnMerge(-1, FarPoint.Win.Spread.Model.MergePolicy.Always);
fpSpread1.Sheets[0].Cells[0, 0].Text = "Test";
fpSpread1.Sheets[0].Cells[1, 0].Text = "Test";
fpSpread1.Sheets[0].Cells[0, 1].Text = "Test";
fpSpread1.Sheets[0].Cells[1, 1].Text = "Test";

FarPoint.Win.Spread.SpreadView sv;
sv = fpSpread1.GetRootWorkbook();
listBox1.Items.Add(sv.GetMergeCells().Count);
FpSpread1.Sheets(0).SetRowMerge(-1, FarPoint.Win.Spread.Model.MergePolicy.Always)
FpSpread1.Sheets(0).SetColumnMerge(-1, FarPoint.Win.Spread.Model.MergePolicy.Always)
FpSpread1.Sheets(0).Cells(0, 0).Text = "Test"
FpSpread1.Sheets(0).Cells(1, 0).Text = "Test"
FpSpread1.Sheets(0).Cells(0, 1).Text = "Test"
FpSpread1.Sheets(0).Cells(1, 1).Text = "Test"

Dim sv As FarPoint.Win.Spread.SpreadView
sv = FpSpread1.GetRootWorkbook()
ListBox1.Items.Add(sv.GetMergeCells().Count)
参照

SpreadView クラス
SpreadView メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.