Version

TopMargin Property (PrintOptionsBase)

Gets or sets the margin at the top of each printed page of the worksheet, specified in inches.
Syntax
public double TopMargin {get; set;}

Property Value

The margin at the top of each printed page of the worksheet, specified in inches.
Exceptions
ExceptionDescription
System.ArgumentOutOfRangeException The assigned value is outside the valid margin range of 0 and 100 inches.
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also