PowerPointSlideSize
OfficeIMO.PowerPoint
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
- Property PowerPointDocument.SlideSize
Methods
public PowerPointLayoutBox[] GetColumns(int columnCount, OfficeLength margin, OfficeLength gutter) #Creates equal columns inside the slide's content region.
Parameters
- columnCount int
- margin OfficeIMO.OfficeLength
- gutter OfficeIMO.OfficeLength
Returns
PowerPointLayoutBox[]public PowerPointLayoutBox GetContentBox(OfficeLength margin) #Gets a content region that respects the specified margin.
Parameters
- margin OfficeIMO.OfficeLength
Returns
PowerPointLayoutBoxpublic PowerPointLayoutBox[] GetRows(int rowCount, OfficeLength margin, OfficeLength gutter) #Creates equal rows inside the slide's content region.
Parameters
- rowCount int
- margin OfficeIMO.OfficeLength
- gutter OfficeIMO.OfficeLength
Returns
PowerPointLayoutBox[]public void SetPreset(PowerPointSlideSizePreset preset, bool portrait = false) #Sets a slide size preset.
Parameters
- preset OfficeIMO.PowerPoint.PowerPointSlideSizePreset
- portrait bool = false
public void SetSize(OfficeLength width, OfficeLength height) #Sets a custom slide size with explicit lengths.
Parameters
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
public void SetSize(OfficeLength width, OfficeLength height, PowerPointSlideSizeType type) #Sets the slide size and its preset type.
Parameters
- width OfficeIMO.OfficeLength
- height OfficeIMO.OfficeLength
- type OfficeIMO.PowerPoint.PowerPointSlideSizeType
Inherited Methods
Properties
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.