Spread Windows Forms 9.0 Product Documentation
SetColumnPageBreak Method
Example 


Column index
Whether to force a page break before the specified column
Sets whether a forced page break is inserted before the specified column on this sheet when printing.
Syntax
'Declaration
 
Public Sub SetColumnPageBreak( _
   ByVal column As Integer, _
   ByVal value As Boolean _
) 
'Usage
 
Dim instance As SheetView
Dim column As Integer
Dim value As Boolean
 
instance.SetColumnPageBreak(column, value)
public void SetColumnPageBreak( 
   int column,
   bool value
)

Parameters

column
Column index
value
Whether to force a page break before the specified column
Example
This example illustrates the use of this member by returning whether a page break is inserted before the specified column when printing.
bool b;
fpSpread1.ActiveSheet.SetColumnPageBreak(1, true);
b = fpSpread1.ActiveSheet.GetColumnPageBreak(1);
label1.Text = "Is there a page break for column 1 = " + b.ToString();
Dim b As Boolean
FpSpread1.ActiveSheet.SetColumnPageBreak(1, True)
b = FpSpread1.ActiveSheet.GetColumnPageBreak(1)
Label1.Text = "Is there a page break for column 1 = " & b.ToString()
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members
GetColumnPageBreak Method

User-Task Documentation

Adding a Page Break

 

 


Copyright © GrapeCity, inc. All rights reserved.