API Reference

Struct

PageMargins

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Base ValueType
Modifiers sealed

Represents page margins in points.

Inheritance

  • ValueType
  • PageMargins

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

public PageMargins(Double left, Double top, Double right, Double bottom) #

Creates page margins in points.

Parameters

left System.Double requiredposition: 0
top System.Double requiredposition: 1
right System.Double requiredposition: 2
bottom System.Double requiredposition: 3

Methods

public static PageMargins FromCentimeters(Double left, Double top, Double right, Double bottom) #
Returns: PageMargins

Creates page margins in centimeters.

Parameters

left System.Double requiredposition: 0
top System.Double requiredposition: 1
right System.Double requiredposition: 2
bottom System.Double requiredposition: 3
public static PageMargins FromInches(Double left, Double top, Double right, Double bottom) #
Returns: PageMargins

Creates page margins in inches.

Parameters

left System.Double requiredposition: 0
top System.Double requiredposition: 1
right System.Double requiredposition: 2
bottom System.Double requiredposition: 3
public static PageMargins Uniform(Double points) #
Returns: PageMargins

Creates uniform page margins in points.

Parameters

points System.Double requiredposition: 0
public static PageMargins UniformCentimeters(Double centimeters) #
Returns: PageMargins

Creates uniform page margins in centimeters.

Parameters

centimeters System.Double requiredposition: 0
public static PageMargins UniformInches(Double inches) #
Returns: PageMargins

Creates uniform page margins in inches.

Parameters

inches System.Double requiredposition: 0

Properties

public Double Left { get; } #

Left margin in points.

public Double Top { get; } #

Top margin in points.

public Double Right { get; } #

Right margin in points.

public Double Bottom { get; } #

Bottom margin in points.

public static PageMargins Normal { get; } #

Normal Word-compatible one-inch margins.

public static PageMargins Narrow { get; } #

Narrow Word-compatible half-inch margins.

public static PageMargins Moderate { get; } #

Moderate Word-compatible margins.

public static PageMargins Wide { get; } #

Wide Word-compatible margins.

public static PageMargins Mirrored { get; } #

Mirrored Word-compatible margin preset values.

public static PageMargins Office2003Default { get; } #

Word 2003 compatible default margin preset values.