Gets or sets the right margin for the printed page.
Syntax
Visual Basic (Declaration) | |
---|
Public Property Right As Integer |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As PrintMargin
Dim value As Integer
instance.Right = value
value = instance.Right |
C# | |
---|
public int Right {get; set;} |
Property Value
Integer number of 100ths of an inch
Remarks
Example
This example shows the use of this property in setting up the margins for the printed page.
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 Basic | Copy 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 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8
See Also