PowerTools SPREAD for Windows Forms 8.0J
GetRowPageBreaks(Int32) メソッド


行改ページを返すシートのインデックス
現在の印刷条件で、指定したシートの行改ページを取得します。
構文
'Declaration
 
Public Overloads Function GetRowPageBreaks( _
   ByVal sheet As Integer _
) As Integer()
'使用法
 
Dim instance As FpSpread
Dim sheet As Integer
Dim value() As Integer
 
value = instance.GetRowPageBreaks(sheet)
public int[] GetRowPageBreaks( 
   int sheet
)

パラメータ

sheet
行改ページを返すシートのインデックス

戻り値の型

改ページする行のインデックスを含む Integer の配列
次のサンプルコードは、行改ページの行番号を取得します。
// Form Load
FarPoint.Win.Spread.PrintInfo pi = new FarPoint.Win.Spread.PrintInfo();
pi.UseMax =false;
fpSpread1.Sheets[0].PrintInfo=pi;
fpSpread1.Sheets[0].SetRowPageBreak(5,true);
// Button Click
int[] i;
i = fpSpread1.GetRowPageBreaks(0);
foreach (object o in i)
{
listBox1.Items.Add(o);
}
' Code in form load event
Dim pi As New FarPoint.Win.Spread.PrintInfo()
pi.UseMax = False
FpSpread1.Sheets(0).PrintInfo = pi
FpSpread1.Sheets(0).SetRowPageBreak(5, True)
' Code in button click event
Dim i() As Integer
Dim o As Object
i = FpSpread1.GetRowPageBreaks(0)
For Each o In i
ListBox1.Items.Add(o)
Next
参照

FpSpread クラス
FpSpread メンバ
オーバーロード一覧

 

 


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