Spread Windows Forms 8.0 Product Documentation
PrintMargin Constructor(Int32,Int32,Int32,Int32,Int32,Int32)
Example 


Size of the left margin in pixels
Size of the top margin in pixels
Size of the right margin in pixels
Size of the bottom margin in pixels
Size of the header margin in pixels
Size of the footer margin in pixels
Creates a new PrintMargin object with the specified margins.
Syntax
'Declaration
 
Public Function New( _
   ByVal left As Integer, _
   ByVal top As Integer, _
   ByVal right As Integer, _
   ByVal bottom As Integer, _
   ByVal header As Integer, _
   ByVal footer As Integer _
)
'Usage
 
Dim left As Integer
Dim top As Integer
Dim right As Integer
Dim bottom As Integer
Dim header As Integer
Dim footer As Integer
 
Dim instance As New PrintMargin(left, top, right, bottom, header, footer)
public PrintMargin( 
   int left,
   int top,
   int right,
   int bottom,
   int header,
   int footer
)

Parameters

left
Size of the left margin in pixels
top
Size of the top margin in pixels
right
Size of the right margin in pixels
bottom
Size of the bottom margin in pixels
header
Size of the header margin in pixels
footer
Size of the footer margin in pixels
Example
FarPoint.Win.Spread.PrintInfo pi = new
FarPoint.Win.Spread.PrintInfo();
FarPoint.Win.Spread.PrintMargin pm = new
FarPoint.Win.Spread.PrintMargin(75, 50, 75, 50, 50, 50);
pi.Margin = pm;
fpSpread1.ActiveSheet.PrintInfo = pi;
Dim pi As New FarPoint.Win.Spread.PrintInfo
Dim pm As New FarPoint.Win.Spread.PrintMargin(75, 50, 75, 50, 50,
50)
pi.Margin = pm
FpSpread1.ActiveSheet.PrintInfo = pi
Requirements

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

See Also

Reference

PrintMargin Class
PrintMargin Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.