Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

PowerPointLayoutBox

OfficeIMO.PowerPoint

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

Represents a rectangular layout region on a slide.

Inheritance

  • ValueType
  • PowerPointLayoutBox

Usage

Explore 73 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 41

Accepted by parameters 32

Constructors

public PowerPointLayoutBox(OfficeLength left, OfficeLength top, OfficeLength width, OfficeLength height) #

Creates a region with explicit position and size.

Parameters

left OfficeIMO.OfficeLength required
top OfficeIMO.OfficeLength required
width OfficeIMO.OfficeLength required
height OfficeIMO.OfficeLength required

Methods

public void ApplyTo(PowerPointShape shape) #

Applies the region's position and size to a shape.

Parameters

shape OfficeIMO.PowerPoint.PowerPointShape required
Inset 3 overloads
public PowerPointLayoutBox Inset(OfficeLength inset) #

Returns a region inset equally on every side.

Parameters

inset OfficeIMO.OfficeLength required
public PowerPointLayoutBox Inset(OfficeLength horizontal, OfficeLength vertical) #

Returns a region inset horizontally and vertically.

Parameters

horizontal OfficeIMO.OfficeLength required
vertical OfficeIMO.OfficeLength required
public PowerPointLayoutBox Inset(OfficeLength left, OfficeLength top, OfficeLength right, OfficeLength bottom) #

Returns a region inset by individual side values.

Parameters

left OfficeIMO.OfficeLength required
top OfficeIMO.OfficeLength required
right OfficeIMO.OfficeLength required
bottom OfficeIMO.OfficeLength required
public PowerPointLayoutBox[] SplitColumns(int columnCount, OfficeLength gutter) #

Splits the region into equal columns separated by a gutter.

Parameters

columnCount int required
gutter OfficeIMO.OfficeLength required
public PowerPointLayoutBox[,] SplitGrid(int rowCount, int columnCount, OfficeLength rowGutter, OfficeLength columnGutter) #

Splits the region into an equal row and column grid.

Parameters

rowCount int required
columnCount int required
rowGutter OfficeIMO.OfficeLength required
columnGutter OfficeIMO.OfficeLength required
public PowerPointLayoutBox[] SplitRows(int rowCount, OfficeLength gutter) #

Splits the region into equal rows separated by a gutter.

Parameters

rowCount int required
gutter OfficeIMO.OfficeLength required
public PowerPointLayoutBox TakeBottom(OfficeLength height) #

Returns the bottom part with the requested height.

Parameters

height OfficeIMO.OfficeLength required
public PowerPointLayoutBox TakeTop(OfficeLength height) #

Returns the top part with the requested height.

Parameters

height OfficeIMO.OfficeLength required

Properties

public OfficeLength Left { get; } #

Left position of the region.

public OfficeLength Top { get; } #

Top position of the region.

public OfficeLength Width { get; } #

Width of the region.

public OfficeLength Height { get; } #

Height of the region.

public OfficeLength Right { get; } #

Right position of the region.

public OfficeLength Bottom { get; } #

Bottom position of the region.