API Reference
PowerPointSlideSize
Provides access to presentation slide size in various units.
Inheritance
- Object
- PowerPointSlideSize
Methods
public PowerPointLayoutBox[] GetColumns(Int32 columnCount, Int64 marginEmus, Int64 gutterEmus) #PowerPointLayoutBox[]Creates column layout boxes inside a content area (EMU units).
Parameters
- columnCount System.Int32
- Number of columns to create.
- marginEmus System.Int64
- Margin in EMUs.
- gutterEmus System.Int64
- Gutter between columns in EMUs.
public PowerPointLayoutBox[] GetColumnsCm(Int32 columnCount, Double marginCm, Double gutterCm) #PowerPointLayoutBox[]Creates column layout boxes inside a content area in centimeters.
Parameters
- columnCount System.Int32
- Number of columns to create.
- marginCm System.Double
- Margin in centimeters.
- gutterCm System.Double
- Gutter between columns in centimeters.
public PowerPointLayoutBox[] GetColumnsInches(Int32 columnCount, Double marginInches, Double gutterInches) #PowerPointLayoutBox[]Creates column layout boxes inside a content area in inches.
Parameters
- columnCount System.Int32
- Number of columns to create.
- marginInches System.Double
- Margin in inches.
- gutterInches System.Double
- Gutter between columns in inches.
public PowerPointLayoutBox[] GetColumnsPoints(Int32 columnCount, Double marginPoints, Double gutterPoints) #PowerPointLayoutBox[]Creates column layout boxes inside a content area in points.
Parameters
- columnCount System.Int32
- Number of columns to create.
- marginPoints System.Double
- Margin in points.
- gutterPoints System.Double
- Gutter between columns in points.
public PowerPointLayoutBox GetContentBox(Int64 marginEmus) #PowerPointLayoutBoxGets a content box that respects the specified margin (EMU units).
Parameters
- marginEmus System.Int64
- Margin in EMUs.
public PowerPointLayoutBox GetContentBoxCm(Double marginCm) #PowerPointLayoutBoxGets a content box that respects the specified margin in centimeters.
Parameters
- marginCm System.Double
- Margin in centimeters.
public PowerPointLayoutBox GetContentBoxInches(Double marginInches) #PowerPointLayoutBoxGets a content box that respects the specified margin in inches.
Parameters
- marginInches System.Double
- Margin in inches.
public PowerPointLayoutBox GetContentBoxPoints(Double marginPoints) #PowerPointLayoutBoxGets a content box that respects the specified margin in points.
Parameters
- marginPoints System.Double
- Margin in points.
public PowerPointLayoutBox[] GetRows(Int32 rowCount, Int64 marginEmus, Int64 gutterEmus) #PowerPointLayoutBox[]Creates row layout boxes inside a content area (EMU units).
Parameters
- rowCount System.Int32
- Number of rows to create.
- marginEmus System.Int64
- Margin in EMUs.
- gutterEmus System.Int64
- Gutter between rows in EMUs.
public PowerPointLayoutBox[] GetRowsCm(Int32 rowCount, Double marginCm, Double gutterCm) #PowerPointLayoutBox[]Creates row layout boxes inside a content area in centimeters.
Parameters
- rowCount System.Int32
- Number of rows to create.
- marginCm System.Double
- Margin in centimeters.
- gutterCm System.Double
- Gutter between rows in centimeters.
public PowerPointLayoutBox[] GetRowsInches(Int32 rowCount, Double marginInches, Double gutterInches) #PowerPointLayoutBox[]Creates row layout boxes inside a content area in inches.
Parameters
- rowCount System.Int32
- Number of rows to create.
- marginInches System.Double
- Margin in inches.
- gutterInches System.Double
- Gutter between rows in inches.
public PowerPointLayoutBox[] GetRowsPoints(Int32 rowCount, Double marginPoints, Double gutterPoints) #PowerPointLayoutBox[]Creates row layout boxes inside a content area in points.
Parameters
- rowCount System.Int32
- Number of rows to create.
- marginPoints System.Double
- Margin in points.
- gutterPoints System.Double
- Gutter between rows in points.
public Void SetPreset(PowerPointSlideSizePreset preset, Boolean portrait = false) #VoidSets a slide size preset.
Parameters
- preset OfficeIMO.PowerPoint.PowerPointSlideSizePreset
- portrait System.Boolean = false
public Void SetSizeCm(Double widthCm, Double heightCm) #VoidSets the slide size in centimeters.
Parameters
- widthCm System.Double
- heightCm System.Double
public Void SetSizeCm(Double widthCm, Double heightCm, SlideSizeValues type) #VoidSets the slide size in centimeters with an explicit slide size type.
Parameters
- widthCm System.Double
- heightCm System.Double
- type DocumentFormat.OpenXml.Presentation.SlideSizeValues
public Void SetSizeEmus(Int64 widthEmus, Int64 heightEmus) #VoidSets the slide size in EMUs.
Parameters
- widthEmus System.Int64
- heightEmus System.Int64
public Void SetSizeEmus(Int64 widthEmus, Int64 heightEmus, SlideSizeValues type) #VoidSets the slide size in EMUs with an explicit slide size type.
Parameters
- widthEmus System.Int64
- heightEmus System.Int64
- type DocumentFormat.OpenXml.Presentation.SlideSizeValues
public Void SetSizeInches(Double widthInches, Double heightInches) #VoidSets the slide size in inches.
Parameters
- widthInches System.Double
- heightInches System.Double
public Void SetSizeInches(Double widthInches, Double heightInches, SlideSizeValues type) #VoidSets the slide size in inches with an explicit slide size type.
Parameters
- widthInches System.Double
- heightInches System.Double
- type DocumentFormat.OpenXml.Presentation.SlideSizeValues
public Void SetSizePoints(Double widthPoints, Double heightPoints) #VoidSets the slide size in points.
Parameters
- widthPoints System.Double
- heightPoints System.Double
public Void SetSizePoints(Double widthPoints, Double heightPoints, SlideSizeValues type) #VoidSets the slide size in points with an explicit slide size type.
Parameters
- widthPoints System.Double
- heightPoints System.Double
- type DocumentFormat.OpenXml.Presentation.SlideSizeValues
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object
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.