PowerPointSlideCompositionContext
OfficeIMO.PowerPoint
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
- Constructor PowerPointCustomPlanSlide.PowerPointCustomPlanSlide
- Method PowerPointDeckPlan.AddCustom
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
- bounds OfficeIMO.PowerPoint.PowerPointLayoutBox
- accentColor string? = null
Returns
IReadOnlyList<PowerPointShape>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>
- options OfficeIMO.PowerPoint.PowerPointCardGridSlideOptions? = null
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>
- bounds OfficeIMO.PowerPoint.PowerPointLayoutBox
- options OfficeIMO.PowerPoint.PowerPointCardGridSlideOptions? = null
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>
- bounds OfficeIMO.PowerPoint.PowerPointLayoutBox
- options OfficeIMO.PowerPoint.PowerPointCoverageSlideOptions? = null
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>
- bounds OfficeIMO.PowerPoint.PowerPointLayoutBox
- options OfficeIMO.PowerPoint.PowerPointLogoWallSlideOptions? = null
Returns
IReadOnlyList<PowerPointShape>public IReadOnlyList<PowerPointShape> AddMetricStrip(IEnumerable<PowerPointMetric> metrics, PowerPointLayoutBox bounds) #Adds KPI tiles inside explicit bounds.
Parameters
- metrics System.Collections.Generic.IEnumerable<OfficeIMO.PowerPoint.PowerPointMetric>
- bounds OfficeIMO.PowerPoint.PowerPointLayoutBox
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>
- bounds OfficeIMO.PowerPoint.PowerPointLayoutBox
- variant OfficeIMO.PowerPoint.PowerPointMetricStripVariant
Returns
IReadOnlyList<PowerPointShape>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>
- options OfficeIMO.PowerPoint.PowerPointProcessSlideOptions? = null
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>
- bounds OfficeIMO.PowerPoint.PowerPointLayoutBox
- options OfficeIMO.PowerPoint.PowerPointProcessSlideOptions? = null
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
- bounds OfficeIMO.PowerPoint.PowerPointLayoutBox
- fontSize OfficeIMO.OfficeLength? = null
- bold bool = false
- color string? = null
Returns
PowerPointTextBoxpublic IReadOnlyList<PowerPointShape> AddTitle(string title, string? subtitle = null) #Adds the deck's standard slide header: accent mark, eyebrow, title and subtitle.
Parameters
- title string
- subtitle string? = null
Returns
IReadOnlyList<PowerPointShape>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
- imagePath string? = null
Returns
IReadOnlyList<PowerPointShape>public IReadOnlyList<PowerPointShape> AddVisualFrame(PowerPointLayoutBox bounds, PowerPointVisualFrameVariant variant) #Adds a surface placeholder inside explicit bounds.
Parameters
- bounds OfficeIMO.PowerPoint.PowerPointLayoutBox
- variant OfficeIMO.PowerPoint.PowerPointVisualFrameVariant
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
- imagePath string?
- variant OfficeIMO.PowerPoint.PowerPointVisualFrameVariant
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
- bottomMargin OfficeIMO.OfficeLength? = null
- horizontalMargin OfficeIMO.OfficeLength? = null
Returns
PowerPointLayoutBoxpublic 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
- gutter OfficeIMO.OfficeLength? = null
- top OfficeIMO.OfficeLength? = null
- bottomMargin OfficeIMO.OfficeLength? = null
- horizontalMargin OfficeIMO.OfficeLength? = null
Returns
PowerPointLayoutBox[]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
- columnCount int
- rowGutter OfficeIMO.OfficeLength? = null
- columnGutter OfficeIMO.OfficeLength? = null
- top OfficeIMO.OfficeLength? = null
- bottomMargin OfficeIMO.OfficeLength? = null
- horizontalMargin OfficeIMO.OfficeLength? = null
Returns
PowerPointLayoutBox[,]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
- gutter OfficeIMO.OfficeLength? = null
- top OfficeIMO.OfficeLength? = null
- bottomMargin OfficeIMO.OfficeLength? = null
- horizontalMargin OfficeIMO.OfficeLength? = null
Returns
PowerPointLayoutBox[]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
- variant OfficeIMO.PowerPoint.PowerPointCompositionVariant = Auto
- top OfficeIMO.OfficeLength? = null
- bottomMargin OfficeIMO.OfficeLength? = null
- horizontalMargin OfficeIMO.OfficeLength? = null
Returns
PowerPointCompositionLayoutInherited Methods
Properties
public PowerPointSlide Slide { get; } #Underlying editable slide for advanced callers that need to add custom OfficeIMO shapes.