Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Struct

OfficePageSize

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Base ValueType
Modifiers sealed

Represents a physical page size used by image/page composition.

Inheritance

  • ValueType
  • OfficePageSize

Usage

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

Constructors

public OfficePageSize(Double widthInches, Double heightInches) #

Creates a physical page size measured in inches.

Parameters

widthInches System.Double requiredposition: 0
heightInches System.Double requiredposition: 1

Methods

public static OfficePageSize FromMillimeters(Double widthMillimeters, Double heightMillimeters) #
Returns: OfficePageSize

Creates a page size from millimeters.

Parameters

widthMillimeters System.Double requiredposition: 0
heightMillimeters System.Double requiredposition: 1
public OfficePageSize Landscape() #
Returns: OfficePageSize

Returns this page size in landscape orientation.

public OfficePageSize Portrait() #
Returns: OfficePageSize

Returns this page size in portrait orientation.

public Int32 ToPixelHeight(Double dpi, Double scale = 1) #
Returns: Int32

Converts the page height to pixels for the requested DPI and scale.

Parameters

dpi System.Double requiredposition: 0
scale System.Double = 1 optionalposition: 1
public Int32 ToPixelWidth(Double dpi, Double scale = 1) #
Returns: Int32

Converts the page width to pixels for the requested DPI and scale.

Parameters

dpi System.Double requiredposition: 0
scale System.Double = 1 optionalposition: 1
public Double ToPointHeight() #
Returns: Double

Converts the page height to points.

public Double ToPointWidth() #
Returns: Double

Converts the page width to points.

Properties

public Double WidthInches { get; } #

Page width in inches.

public Double HeightInches { get; } #

Page height in inches.