Spread Windows Forms 11.0 Product Documentation
SetRowPageBreak Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : SetRowPageBreak Method
Row index
Whether to force a page break before the specified row
Sets whether a forced page break is inserted before the specified row on this sheet when printing.
Syntax
'Declaration
 
Public Sub SetRowPageBreak( _
   ByVal row As Integer, _
   ByVal value As Boolean _
) 
'Usage
 
Dim instance As SheetView
Dim row As Integer
Dim value As Boolean
 
instance.SetRowPageBreak(row, value)
public void SetRowPageBreak( 
   int row,
   bool value
)

Parameters

row
Row index
value
Whether to force a page break before the specified row
Example
This example illustrates the use of this member by returning whether a page break is inserted before the specified row when printing.
bool b;
fpSpread1.ActiveSheet.SetRowPageBreak(0, true);
b = fpSpread1.ActiveSheet.GetRowPageBreak(0);
label1.Text = "Is there a page break set for row 0 = " + b.ToString();
Dim b As Boolean
FpSpread1.ActiveSheet.SetRowPageBreak(0, True)
b = FpSpread1.ActiveSheet.GetRowPageBreak(0)
Label1.Text = "Is there a page break set for row 0 = " & b.ToString()
See Also

Reference

SheetView Class
SheetView Members
GetRowPageBreak Method

User-Task Documentation

Adding a Page Break