Spread Windows Forms 6.0 Product Documentation
PrintMargin Constructor()
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > PrintMargin Class > PrintMargin Constructor : PrintMargin Constructor()


Glossary Item Box

Creates a new PrintMargin object with margins set to zero.

Syntax

Visual Basic (Declaration) 
Public Function New()
Visual Basic (Usage)Copy Code
Dim instance As New PrintMargin()
C# 
public PrintMargin()

Example

C#Copy Code
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;
Visual BasicCopy Code
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

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.