Spread for ASP.NET 7.0 Product Documentation
PrintMargin Constructor()
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.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

This example sets the print margin.
C#Copy Code
FarPoint.Web.Spread.PrintMargin m = new FarPoint.Web.Spread.PrintMargin();
m.Bottom = 10;
m.Footer = 10;
m.Header = 10;
m.Left = 10;
m.Right = 10;
m.Top = 10;
FarPoint.Web.Spread.PrintInfo pi = new FarPoint.Web.Spread.PrintInfo();
pi.Margin = m;
FpSpread1.ActiveSheetView.PrintInfo = pi;
VB.NETCopy Code
Dim m As New FarPoint.Web.Spread.PrintMargin
m.Bottom = 10
m.Footer = 10
m.Header = 10
m.Left = 10
m.Right = 10
m.Top = 10
Dim pi As New FarPoint.Web.Spread.PrintInfo
pi.Margin = m
FpSpread1.ActiveSheetView.PrintInfo = pi

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

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