Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PowerPointSlideSize

OfficeIMO.PowerPoint

Namespace
OfficeIMO.PowerPoint
Assembly
OfficeIMO.PowerPoint
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

Provides access to presentation slide size in various units.

Inheritance

  • object
  • PowerPointSlideSize

Usage

Explore 1 API references to this type

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

Returned or exposed by 1

Methods

public PowerPointLayoutBox[] GetColumns(int columnCount, OfficeLength margin, OfficeLength gutter) #

Creates equal columns inside the slide's content region.

Parameters

columnCount int required
margin OfficeIMO.OfficeLength required
gutter OfficeIMO.OfficeLength required
public PowerPointLayoutBox GetContentBox(OfficeLength margin) #

Gets a content region that respects the specified margin.

Parameters

margin OfficeIMO.OfficeLength required
public PowerPointLayoutBox[] GetRows(int rowCount, OfficeLength margin, OfficeLength gutter) #

Creates equal rows inside the slide's content region.

Parameters

rowCount int required
margin OfficeIMO.OfficeLength required
gutter OfficeIMO.OfficeLength required
public void SetPreset(PowerPointSlideSizePreset preset, bool portrait = false) #

Sets a slide size preset.

Parameters

preset OfficeIMO.PowerPoint.PowerPointSlideSizePreset required
portrait bool = false optional
SetSize 2 overloads
public void SetSize(OfficeLength width, OfficeLength height) #

Sets a custom slide size with explicit lengths.

Parameters

width OfficeIMO.OfficeLength required
height OfficeIMO.OfficeLength required
public void SetSize(OfficeLength width, OfficeLength height, PowerPointSlideSizeType type) #

Sets the slide size and its preset type.

Parameters

width OfficeIMO.OfficeLength required
height OfficeIMO.OfficeLength required
type OfficeIMO.PowerPoint.PowerPointSlideSizeType required

Properties

public OfficeLength Width { get; set; } #

Slide width.

public OfficeLength Height { get; set; } #

Slide height.

public double AspectRatio { get; } #

Gets the slide width divided by its height.

public bool IsPortrait { get; } #

Gets whether the slide is in portrait orientation.

public bool IsLandscape { get; } #

Gets whether the slide is in landscape orientation.

public PowerPointSlideSizeType? Type { get; set; } #

Slide size preset type.