Spread Windows Forms 6.0 Product Documentation
PageBreak Field
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.Model Namespace > SheetAxisProperty Class : PageBreak Field


Glossary Item Box

Represents the axis model PageBreak property.

Syntax

Visual Basic (Declaration) 
Public Shared ReadOnly PageBreak As SheetAxisProperty
Visual Basic (Usage)Copy Code
Dim value As SheetAxisProperty
 
value = SheetAxisProperty.PageBreak
C# 
public static readonly SheetAxisProperty PageBreak

Example

This example checks to see if the PageBreak property has been set for the specified index of the model.
C#Copy Code
FarPoint.Win.Spread.Model.DefaultSheetAxisModel defAxis = new FarPoint.Win.Spread.Model.DefaultSheetAxisModel(20, FarPoint.Win.Spread.Model.SheetAxisOrientation.Vertical);
fpSpread1.ActiveSheet.Models.ColumnAxis = defAxis;
bool b;
defAxis.SetPageBreak(10, true);
b = defAxis.IsPropertySet(10, FarPoint.Win.Spread.Model.SheetAxisProperty.PageBreak);
listBox1.Items.Add(b.ToString());
Visual BasicCopy Code
Dim defAxis As New FarPoint.Win.Spread.Model.DefaultSheetAxisModel(20, FarPoint.Win.Spread.Model.SheetAxisOrientation.Vertical)
defAxis = FpSpread1.ActiveSheet.Models.ColumnAxis
Dim b As Boolean
defAxis.SetPageBreak(10, True)
b = defAxis.IsPropertySet(10, FarPoint.Win.Spread.Model.SheetAxisProperty.PageBreak)
ListBox1.Items.Add(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.