Parameters
- sheet
- Sheet index for which to return row page breaks
Return Value
Integer array containing the indexes of rows for which page breaks occur
// 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