Spread Windows Forms 11.0 Product Documentation
Header Property (PrintMargin)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > PrintMargin Class : Header Property
Gets or sets the header margin for the printed page.
Syntax
'Declaration
 
Public Property Header As Integer
'Usage
 
Dim instance As PrintMargin
Dim value As Integer
 
instance.Header = value
 
value = instance.Header
public int Header {get; set;}

Property Value

Integer number of 100ths of an inch
Remarks

This is the space between the bottom of the header and the top of the body content. See the diagram in Setting the Printed Page White Space in Customizing the Printed Page Layout. To set the space between the top of the page and the top of the header, refer to the Top property.

Set the margin as 100th of an inch units; therefore, to set a 3/4-inch margin, set the property to 75.

Example
This example shows the use of this property in setting up the margins for the printed page.
FarPoint.Win.Spread.PrintInfo pi = new
FarPoint.Win.Spread.PrintInfo();
FarPoint.Win.Spread.PrintMargin pm = new
FarPoint.Win.Spread.PrintMargin();
pm.Left = 75;
pm.Right = 75;
pm.Top = 50;
pm.Bottom = 50;
pm.Footer = 50;
pm.Header = 50;
pi.Margin = pm;
fpSpread1.ActiveSheet.PrintInfo = pi;
Dim pi As New FarPoint.Win.Spread.PrintInfo
Dim pm As New FarPoint.Win.Spread.PrintMargin
pm.Left = 75
pm.Right = 75
pm.Top = 50
pm.Bottom = 50
pm.Footer = 50
pm.Header = 50
pi.Margin = pm
FpSpread1.ActiveSheet.PrintInfo = pi
See Also

Reference

PrintMargin Class
PrintMargin Members

User-Task Documentation

Customizing the Printed Page Layout