Spread Windows Forms 6.0 Product Documentation
SetColumnPageBreak Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : SetColumnPageBreak Method


column
Column index
value
Whether to force a page break before the specified column

Glossary Item Box

Sets whether a forced page break is inserted before the specified column on this sheet when printing.

Syntax

Visual Basic (Declaration) 
Public Sub SetColumnPageBreak( _
   ByVal column As Integer, _
   ByVal value As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim column As Integer
Dim value As Boolean
 
instance.SetColumnPageBreak(column, value)
C# 
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.
C#Copy Code
bool b;
fpSpread1.ActiveSheet.SetColumnPageBreak(1, true);
b = fpSpread1.ActiveSheet.GetColumnPageBreak(1);
label1.Text = "Is there a page break for column 1 = " + b.ToString();
Visual BasicCopy Code
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.