Spread ASP.NET 6.0 Product Documentation
Left Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > PrintMargin Class : Left Property


Glossary Item Box

Gets or sets the left margin for the printed page.

Syntax

Visual Basic (Declaration) 
Public Property Left As Integer
Visual Basic (Usage)Copy Code
Dim instance As PrintMargin
Dim value As Integer
 
instance.Left = value
 
value = instance.Left
C# 
public int Left {get; set;}

Example

This example sets the margins for printing.
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;
Visual BasicCopy 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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.