Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PowerPointSlideCompositionContext

OfficeIMO.PowerPoint

Namespace
OfficeIMO.PowerPoint
Assembly
OfficeIMO.PowerPoint
Source revision
90fbca630045 with working tree changes
Modifiers
sealed

Plan-owned callback context for building a custom designed slide without manually placing every shape. Regions and primitives come from the deck's layout grid and theme, so a custom slide shares the header, type scale and tile designs of every other slide.

Inheritance

  • object
  • PowerPointSlideCompositionContext

Usage

Explore 2 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.

Accepted by parameters 2

Methods

public IReadOnlyList<PowerPointShape> AddCalloutBand(string text, PowerPointLayoutBox bounds, string? accentColor = null) #

Adds a callout: a surface panel with an accent rule and lede text.

Parameters

text string required
bounds OfficeIMO.PowerPoint.PowerPointLayoutBox required
accentColor string? = null optional

Returns

IReadOnlyList<PowerPointShape>
AddCardGrid 2 overloads
public IReadOnlyList<PowerPointShape> AddCardGrid(IEnumerable<PowerPointCardContent> cards, PowerPointCardGridSlideOptions? options = null) #

Adds the Cards composition in the content area.

Parameters

cards System.Collections.Generic.IEnumerable<OfficeIMO.PowerPoint.PowerPointCardContent> required
options OfficeIMO.PowerPoint.PowerPointCardGridSlideOptions? = null optional

Returns

IReadOnlyList<PowerPointShape>
public IReadOnlyList<PowerPointShape> AddCardGrid(IEnumerable<PowerPointCardContent> cards, PowerPointLayoutBox bounds, PowerPointCardGridSlideOptions? options = null) #

Adds the Cards composition inside a caller-selected region.

Parameters

cards System.Collections.Generic.IEnumerable<OfficeIMO.PowerPoint.PowerPointCardContent> required
bounds OfficeIMO.PowerPoint.PowerPointLayoutBox required
options OfficeIMO.PowerPoint.PowerPointCardGridSlideOptions? = null optional

Returns

IReadOnlyList<PowerPointShape>
public IReadOnlyList<PowerPointShape> AddCoverageMap(IEnumerable<PowerPointCoverageLocation> locations, PowerPointLayoutBox bounds, PowerPointCoverageSlideOptions? options = null) #

Adds the Coverage composition (map with numbered pins and the location list) inside explicit bounds.

Parameters

locations System.Collections.Generic.IEnumerable<OfficeIMO.PowerPoint.PowerPointCoverageLocation> required
bounds OfficeIMO.PowerPoint.PowerPointLayoutBox required
options OfficeIMO.PowerPoint.PowerPointCoverageSlideOptions? = null optional

Returns

IReadOnlyList<PowerPointShape>
public IReadOnlyList<PowerPointShape> AddLogoWall(IEnumerable<PowerPointLogoItem> logos, PowerPointLayoutBox bounds, PowerPointLogoWallSlideOptions? options = null) #

Adds the Logos composition inside a caller-selected region.

Parameters

logos System.Collections.Generic.IEnumerable<OfficeIMO.PowerPoint.PowerPointLogoItem> required
bounds OfficeIMO.PowerPoint.PowerPointLayoutBox required
options OfficeIMO.PowerPoint.PowerPointLogoWallSlideOptions? = null optional

Returns

IReadOnlyList<PowerPointShape>
AddMetricStrip 2 overloads
public IReadOnlyList<PowerPointShape> AddMetricStrip(IEnumerable<PowerPointMetric> metrics, PowerPointLayoutBox bounds) #

Adds KPI tiles inside explicit bounds.

Parameters

metrics System.Collections.Generic.IEnumerable<OfficeIMO.PowerPoint.PowerPointMetric> required
bounds OfficeIMO.PowerPoint.PowerPointLayoutBox required

Returns

IReadOnlyList<PowerPointShape>
public IReadOnlyList<PowerPointShape> AddMetricStrip(IEnumerable<PowerPointMetric> metrics, PowerPointLayoutBox bounds, PowerPointMetricStripVariant variant) #

Adds KPI tiles inside explicit bounds. The theme layouts draw one tile design; the variant is kept for compatibility.

Parameters

metrics System.Collections.Generic.IEnumerable<OfficeIMO.PowerPoint.PowerPointMetric> required
bounds OfficeIMO.PowerPoint.PowerPointLayoutBox required
variant OfficeIMO.PowerPoint.PowerPointMetricStripVariant required

Returns

IReadOnlyList<PowerPointShape>
AddProcessTimeline 2 overloads
public IReadOnlyList<PowerPointShape> AddProcessTimeline(IEnumerable<PowerPointProcessStep> steps, PowerPointProcessSlideOptions? options = null) #

Adds the Process composition in the content area.

Parameters

steps System.Collections.Generic.IEnumerable<OfficeIMO.PowerPoint.PowerPointProcessStep> required
options OfficeIMO.PowerPoint.PowerPointProcessSlideOptions? = null optional

Returns

IReadOnlyList<PowerPointShape>
public IReadOnlyList<PowerPointShape> AddProcessTimeline(IEnumerable<PowerPointProcessStep> steps, PowerPointLayoutBox bounds, PowerPointProcessSlideOptions? options = null) #

Adds the Process composition inside a caller-selected region.

Parameters

steps System.Collections.Generic.IEnumerable<OfficeIMO.PowerPoint.PowerPointProcessStep> required
bounds OfficeIMO.PowerPoint.PowerPointLayoutBox required
options OfficeIMO.PowerPoint.PowerPointProcessSlideOptions? = null optional

Returns

IReadOnlyList<PowerPointShape>
public PowerPointTextBox AddTextBlock(string text, PowerPointLayoutBox bounds, OfficeLength? fontSize = null, bool bold = false, string? color = null) #

Adds a text block at the requested bounds in the body font. Sizes below the theme's small-body minimum are raised to it so text stays readable.

Parameters

text string required
bounds OfficeIMO.PowerPoint.PowerPointLayoutBox required
fontSize OfficeIMO.OfficeLength? = null optional
bold bool = false optional
color string? = null optional
public IReadOnlyList<PowerPointShape> AddTitle(string title, string? subtitle = null) #

Adds the deck's standard slide header: accent mark, eyebrow, title and subtitle.

Parameters

title string required
subtitle string? = null optional

Returns

IReadOnlyList<PowerPointShape>
AddVisualFrame 3 overloads
public IReadOnlyList<PowerPointShape> AddVisualFrame(PowerPointLayoutBox bounds, string? imagePath = null) #

Adds an image (contained) or, without one, a surface placeholder inside explicit bounds.

Parameters

bounds OfficeIMO.PowerPoint.PowerPointLayoutBox required
imagePath string? = null optional

Returns

IReadOnlyList<PowerPointShape>
public IReadOnlyList<PowerPointShape> AddVisualFrame(PowerPointLayoutBox bounds, PowerPointVisualFrameVariant variant) #

Adds a surface placeholder inside explicit bounds.

Parameters

bounds OfficeIMO.PowerPoint.PowerPointLayoutBox required
variant OfficeIMO.PowerPoint.PowerPointVisualFrameVariant required

Returns

IReadOnlyList<PowerPointShape>
public IReadOnlyList<PowerPointShape> AddVisualFrame(PowerPointLayoutBox bounds, string? imagePath, PowerPointVisualFrameVariant variant) #

Adds an image (contained) or, without one, a surface placeholder inside explicit bounds.

Parameters

bounds OfficeIMO.PowerPoint.PowerPointLayoutBox required
imagePath string? required
variant OfficeIMO.PowerPoint.PowerPointVisualFrameVariant required

Returns

IReadOnlyList<PowerPointShape>
public PowerPointLayoutBox ContentArea(OfficeLength? top = null, OfficeLength? bottomMargin = null, OfficeLength? horizontalMargin = null) #

Returns the editable content area below the title and above the footer. With the default arguments this is the layout grid's content zone; explicit arguments describe a custom area in centimetres.

Parameters

top OfficeIMO.OfficeLength? = null optional
bottomMargin OfficeIMO.OfficeLength? = null optional
horizontalMargin OfficeIMO.OfficeLength? = null optional
public PowerPointLayoutBox[] ContentColumns(int columnCount, OfficeLength? gutter = null, OfficeLength? top = null, OfficeLength? bottomMargin = null, OfficeLength? horizontalMargin = null) #

Returns columns inside the default content area. The default gutter is 0.65 cm.

Parameters

columnCount int required
gutter OfficeIMO.OfficeLength? = null optional
top OfficeIMO.OfficeLength? = null optional
bottomMargin OfficeIMO.OfficeLength? = null optional
horizontalMargin OfficeIMO.OfficeLength? = null optional
public PowerPointLayoutBox[,] ContentGrid(int rowCount, int columnCount, OfficeLength? rowGutter = null, OfficeLength? columnGutter = null, OfficeLength? top = null, OfficeLength? bottomMargin = null, OfficeLength? horizontalMargin = null) #

Returns a grid inside the default content area. Both default gutters are 0.55 cm.

Parameters

rowCount int required
columnCount int required
rowGutter OfficeIMO.OfficeLength? = null optional
columnGutter OfficeIMO.OfficeLength? = null optional
top OfficeIMO.OfficeLength? = null optional
bottomMargin OfficeIMO.OfficeLength? = null optional
horizontalMargin OfficeIMO.OfficeLength? = null optional
public PowerPointLayoutBox[] ContentRows(int rowCount, OfficeLength? gutter = null, OfficeLength? top = null, OfficeLength? bottomMargin = null, OfficeLength? horizontalMargin = null) #

Returns rows inside the default content area. The default gutter is 0.55 cm.

Parameters

rowCount int required
gutter OfficeIMO.OfficeLength? = null optional
top OfficeIMO.OfficeLength? = null optional
bottomMargin OfficeIMO.OfficeLength? = null optional
horizontalMargin OfficeIMO.OfficeLength? = null optional
public PowerPointCompositionLayout UsePreset(PowerPointCompositionPreset preset = Auto, PowerPointCompositionVariant variant = Auto, OfficeLength? top = null, OfficeLength? bottomMargin = null, OfficeLength? horizontalMargin = null) #

Resolves a named composition preset and variant into reusable regions for a raw designer slide.

Parameters

preset OfficeIMO.PowerPoint.PowerPointCompositionPreset = Auto optional
variant OfficeIMO.PowerPoint.PowerPointCompositionVariant = Auto optional
top OfficeIMO.OfficeLength? = null optional
bottomMargin OfficeIMO.OfficeLength? = null optional
horizontalMargin OfficeIMO.OfficeLength? = null optional

Properties

public PowerPointSlide Slide { get; } #

Underlying editable slide for advanced callers that need to add custom OfficeIMO shapes.