OfficeIMO

API Reference

Class

PowerPointSlideSize

Namespace OfficeIMO.PowerPoint
Assembly OfficeIMO.PowerPoint
Modifiers sealed

Provides access to presentation slide size in various units.

Inheritance

  • Object
  • PowerPointSlideSize

Methods

public PowerPointLayoutBox[] GetColumns(Int32 columnCount, Int64 marginEmus, Int64 gutterEmus) #
Returns: PowerPointLayoutBox[]

Creates column layout boxes inside a content area (EMU units).

Parameters

columnCount System.Int32 requiredposition: 0
Number of columns to create.
marginEmus System.Int64 requiredposition: 1
Margin in EMUs.
gutterEmus System.Int64 requiredposition: 2
Gutter between columns in EMUs.
public PowerPointLayoutBox[] GetColumnsCm(Int32 columnCount, Double marginCm, Double gutterCm) #
Returns: PowerPointLayoutBox[]

Creates column layout boxes inside a content area in centimeters.

Parameters

columnCount System.Int32 requiredposition: 0
Number of columns to create.
marginCm System.Double requiredposition: 1
Margin in centimeters.
gutterCm System.Double requiredposition: 2
Gutter between columns in centimeters.
public PowerPointLayoutBox[] GetColumnsInches(Int32 columnCount, Double marginInches, Double gutterInches) #
Returns: PowerPointLayoutBox[]

Creates column layout boxes inside a content area in inches.

Parameters

columnCount System.Int32 requiredposition: 0
Number of columns to create.
marginInches System.Double requiredposition: 1
Margin in inches.
gutterInches System.Double requiredposition: 2
Gutter between columns in inches.
public PowerPointLayoutBox[] GetColumnsPoints(Int32 columnCount, Double marginPoints, Double gutterPoints) #
Returns: PowerPointLayoutBox[]

Creates column layout boxes inside a content area in points.

Parameters

columnCount System.Int32 requiredposition: 0
Number of columns to create.
marginPoints System.Double requiredposition: 1
Margin in points.
gutterPoints System.Double requiredposition: 2
Gutter between columns in points.
public PowerPointLayoutBox GetContentBox(Int64 marginEmus) #
Returns: PowerPointLayoutBox

Gets a content box that respects the specified margin (EMU units).

Parameters

marginEmus System.Int64 requiredposition: 0
Margin in EMUs.
public PowerPointLayoutBox GetContentBoxCm(Double marginCm) #
Returns: PowerPointLayoutBox

Gets a content box that respects the specified margin in centimeters.

Parameters

marginCm System.Double requiredposition: 0
Margin in centimeters.
public PowerPointLayoutBox GetContentBoxInches(Double marginInches) #
Returns: PowerPointLayoutBox

Gets a content box that respects the specified margin in inches.

Parameters

marginInches System.Double requiredposition: 0
Margin in inches.
public PowerPointLayoutBox GetContentBoxPoints(Double marginPoints) #
Returns: PowerPointLayoutBox

Gets a content box that respects the specified margin in points.

Parameters

marginPoints System.Double requiredposition: 0
Margin in points.
public PowerPointLayoutBox[] GetRows(Int32 rowCount, Int64 marginEmus, Int64 gutterEmus) #
Returns: PowerPointLayoutBox[]

Creates row layout boxes inside a content area (EMU units).

Parameters

rowCount System.Int32 requiredposition: 0
Number of rows to create.
marginEmus System.Int64 requiredposition: 1
Margin in EMUs.
gutterEmus System.Int64 requiredposition: 2
Gutter between rows in EMUs.
public PowerPointLayoutBox[] GetRowsCm(Int32 rowCount, Double marginCm, Double gutterCm) #
Returns: PowerPointLayoutBox[]

Creates row layout boxes inside a content area in centimeters.

Parameters

rowCount System.Int32 requiredposition: 0
Number of rows to create.
marginCm System.Double requiredposition: 1
Margin in centimeters.
gutterCm System.Double requiredposition: 2
Gutter between rows in centimeters.
public PowerPointLayoutBox[] GetRowsInches(Int32 rowCount, Double marginInches, Double gutterInches) #
Returns: PowerPointLayoutBox[]

Creates row layout boxes inside a content area in inches.

Parameters

rowCount System.Int32 requiredposition: 0
Number of rows to create.
marginInches System.Double requiredposition: 1
Margin in inches.
gutterInches System.Double requiredposition: 2
Gutter between rows in inches.
public PowerPointLayoutBox[] GetRowsPoints(Int32 rowCount, Double marginPoints, Double gutterPoints) #
Returns: PowerPointLayoutBox[]

Creates row layout boxes inside a content area in points.

Parameters

rowCount System.Int32 requiredposition: 0
Number of rows to create.
marginPoints System.Double requiredposition: 1
Margin in points.
gutterPoints System.Double requiredposition: 2
Gutter between rows in points.
public Void SetPreset(PowerPointSlideSizePreset preset, Boolean portrait = false) #
Returns: Void

Sets a slide size preset.

Parameters

preset OfficeIMO.PowerPoint.PowerPointSlideSizePreset requiredposition: 0
portrait System.Boolean = false optionalposition: 1
SetSizeCm 2 overloads
public Void SetSizeCm(Double widthCm, Double heightCm) #
Returns: Void

Sets the slide size in centimeters.

Parameters

widthCm System.Double requiredposition: 0
heightCm System.Double requiredposition: 1
public Void SetSizeCm(Double widthCm, Double heightCm, SlideSizeValues type) #
Returns: Void

Sets the slide size in centimeters with an explicit slide size type.

Parameters

widthCm System.Double requiredposition: 0
heightCm System.Double requiredposition: 1
type DocumentFormat.OpenXml.Presentation.SlideSizeValues requiredposition: 2
SetSizeEmus 2 overloads
public Void SetSizeEmus(Int64 widthEmus, Int64 heightEmus) #
Returns: Void

Sets the slide size in EMUs.

Parameters

widthEmus System.Int64 requiredposition: 0
heightEmus System.Int64 requiredposition: 1
public Void SetSizeEmus(Int64 widthEmus, Int64 heightEmus, SlideSizeValues type) #
Returns: Void

Sets the slide size in EMUs with an explicit slide size type.

Parameters

widthEmus System.Int64 requiredposition: 0
heightEmus System.Int64 requiredposition: 1
type DocumentFormat.OpenXml.Presentation.SlideSizeValues requiredposition: 2
SetSizeInches 2 overloads
public Void SetSizeInches(Double widthInches, Double heightInches) #
Returns: Void

Sets the slide size in inches.

Parameters

widthInches System.Double requiredposition: 0
heightInches System.Double requiredposition: 1
public Void SetSizeInches(Double widthInches, Double heightInches, SlideSizeValues type) #
Returns: Void

Sets the slide size in inches with an explicit slide size type.

Parameters

widthInches System.Double requiredposition: 0
heightInches System.Double requiredposition: 1
type DocumentFormat.OpenXml.Presentation.SlideSizeValues requiredposition: 2
SetSizePoints 2 overloads
public Void SetSizePoints(Double widthPoints, Double heightPoints) #
Returns: Void

Sets the slide size in points.

Parameters

widthPoints System.Double requiredposition: 0
heightPoints System.Double requiredposition: 1
public Void SetSizePoints(Double widthPoints, Double heightPoints, SlideSizeValues type) #
Returns: Void

Sets the slide size in points with an explicit slide size type.

Parameters

widthPoints System.Double requiredposition: 0
heightPoints System.Double requiredposition: 1
type DocumentFormat.OpenXml.Presentation.SlideSizeValues requiredposition: 2

Properties

public Int64 WidthEmus { get; set; } #

Slide width in EMUs.

public Int64 HeightEmus { get; set; } #

Slide height in EMUs.

public Double WidthCm { get; set; } #

Slide width in centimeters.

public Double HeightCm { get; set; } #

Slide height in centimeters.

public Double WidthInches { get; set; } #

Slide width in inches.

public Double HeightInches { get; set; } #

Slide height in inches.

public Double WidthPoints { get; set; } #

Slide width in points.

public Double HeightPoints { get; set; } #

Slide height in points.

public Double AspectRatio { get; } #

Gets the slide aspect ratio (width / height).

public Boolean IsPortrait { get; } #

Gets a value indicating whether the slide is in portrait orientation.

public Boolean IsLandscape { get; } #

Gets a value indicating whether the slide is in landscape orientation.

public Nullable<SlideSizeValues> Type { get; set; } #

Slide size preset type.