API Reference
PowerPointLayoutBox
Represents a rectangular layout region on a slide.
Inheritance
- ValueType
- PowerPointLayoutBox
Constructors
public PowerPointLayoutBox(Int64 left, Int64 top, Int64 width, Int64 height) #Creates a new layout box in EMUs.
Parameters
- left System.Int64
- Left position in EMUs.
- top System.Int64
- Top position in EMUs.
- width System.Int64
- Width in EMUs.
- height System.Int64
- Height in EMUs.
Methods
public Void ApplyTo(PowerPointShape shape) #VoidApplies the layout box to the provided shape.
Parameters
- shape OfficeIMO.PowerPoint.PowerPointShape
- Shape to update.
public static PowerPointLayoutBox FromCentimeters(Double leftCm, Double topCm, Double widthCm, Double heightCm) #PowerPointLayoutBoxCreates a new layout box in centimeters.
Parameters
- leftCm System.Double
- topCm System.Double
- widthCm System.Double
- heightCm System.Double
public static PowerPointLayoutBox FromInches(Double leftInches, Double topInches, Double widthInches, Double heightInches) #PowerPointLayoutBoxCreates a new layout box in inches.
Parameters
- leftInches System.Double
- topInches System.Double
- widthInches System.Double
- heightInches System.Double
public static PowerPointLayoutBox FromPoints(Double leftPoints, Double topPoints, Double widthPoints, Double heightPoints) #PowerPointLayoutBoxCreates a new layout box in points.
Parameters
- leftPoints System.Double
- topPoints System.Double
- widthPoints System.Double
- heightPoints System.Double
public PowerPointLayoutBox[] SplitColumns(Int32 columnCount, Int64 gutterEmus) #PowerPointLayoutBox[]Splits the layout box into equal columns (EMU units).
Parameters
- columnCount System.Int32
- gutterEmus System.Int64
public PowerPointLayoutBox[] SplitColumnsCm(Int32 columnCount, Double gutterCm) #PowerPointLayoutBox[]Splits the layout box into equal columns in centimeters.
Parameters
- columnCount System.Int32
- gutterCm System.Double
public PowerPointLayoutBox[] SplitColumnsInches(Int32 columnCount, Double gutterInches) #PowerPointLayoutBox[]Splits the layout box into equal columns in inches.
Parameters
- columnCount System.Int32
- gutterInches System.Double
public PowerPointLayoutBox[] SplitColumnsPoints(Int32 columnCount, Double gutterPoints) #PowerPointLayoutBox[]Splits the layout box into equal columns in points.
Parameters
- columnCount System.Int32
- gutterPoints System.Double
public PowerPointLayoutBox[] SplitRows(Int32 rowCount, Int64 gutterEmus) #PowerPointLayoutBox[]Splits the layout box into equal rows (EMU units).
Parameters
- rowCount System.Int32
- gutterEmus System.Int64
public PowerPointLayoutBox[] SplitRowsCm(Int32 rowCount, Double gutterCm) #PowerPointLayoutBox[]Splits the layout box into equal rows in centimeters.
Parameters
- rowCount System.Int32
- gutterCm System.Double
public PowerPointLayoutBox[] SplitRowsInches(Int32 rowCount, Double gutterInches) #PowerPointLayoutBox[]Splits the layout box into equal rows in inches.
Parameters
- rowCount System.Int32
- gutterInches System.Double
public PowerPointLayoutBox[] SplitRowsPoints(Int32 rowCount, Double gutterPoints) #PowerPointLayoutBox[]Splits the layout box into equal rows in points.
Parameters
- rowCount System.Int32
- gutterPoints System.Double
Inherited Methods
Properties
public Int64 Bottom { get; } #Bottom position in EMUs.
public Double LeftCm { get; } #Left position in centimeters.
public Double TopCm { get; } #Top position in centimeters.
public Double HeightCm { get; } #Height in centimeters.
public Double LeftInches { get; } #Left position in inches.
public Double TopInches { get; } #Top position in inches.
public Double HeightInches { get; } #Height in inches.
public Double LeftPoints { get; } #Left position in points.
public Double TopPoints { get; } #Top position in points.
public Double HeightPoints { get; } #Height in points.