# PowerPointSlideCompositionContext

Plan-owned callback context for building a custom designed slide without manually placing every shape.

Class 

`OfficeIMO.PowerPoint`

**Namespace**

`OfficeIMO.PowerPoint`

**Assembly**

`OfficeIMO.PowerPoint`

**Source revision**

`90fbca630045` with working tree changes

**Source**

[PowerPointSlideCompositionContext.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L50)

**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

- Constructor [PowerPointCustomPlanSlide.PowerPointCustomPlanSlide](/api/powerpoint/officeimo-powerpoint-powerpointcustomplanslide/#constructor-ctor-string-action-officeimo-powerpoint-powerpointslidecompositioncontext-string-action-officeimo-powerpoint-powerpointdesignerslideoptions-boolean) parameter `compose`
- Method [PowerPointDeckPlan.AddCustom](/api/powerpoint/officeimo-powerpoint-powerpointdeckplan/#method-addcustom-string-action-officeimo-powerpoint-powerpointslidecompositioncontext-string-action-officeimo-powerpoint-powerpointdesignerslideoptions-boolean) parameter `compose`

Filter members 

Show inherited

## Methods

`public IReadOnlyList<PowerPointShape> AddCalloutBand(string text, PowerPointLayoutBox bounds, string? accentColor = null)` [#](#method-addcalloutband-string-officeimo-powerpoint-powerpointlayoutbox-string)

[PowerPointSlideCompositionContext.cs:204](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L204)

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)` [#](#method-addcardgrid-collections-generic-ienumerable-officeimo-powerpoint-powerpointcardcontent-officeimo-powerpoint-powerpointcardgridslideoptions)

[PowerPointSlideCompositionContext.cs:122](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L122)

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)` [#](#method-addcardgrid-collections-generic-ienumerable-officeimo-powerpoint-powerpointcardcontent-officeimo-powerpoint-powerpointlayoutbox-officeimo-powerpoint-powerpointcardgridslideoptions)

[PowerPointSlideCompositionContext.cs:127](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L127)

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)` [#](#method-addcoveragemap-collections-generic-ienumerable-officeimo-powerpoint-powerpointcoveragelocation-officeimo-powerpoint-powerpointlayoutbox-officeimo-powerpoint-powerpointcoverageslideoptions)

[PowerPointSlideCompositionContext.cs:231](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L231)

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)` [#](#method-addlogowall-collections-generic-ienumerable-officeimo-powerpoint-powerpointlogoitem-officeimo-powerpoint-powerpointlayoutbox-officeimo-powerpoint-powerpointlogowallslideoptions)

[PowerPointSlideCompositionContext.cs:220](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L220)

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)` [#](#method-addmetricstrip-collections-generic-ienumerable-officeimo-powerpoint-powerpointmetric-officeimo-powerpoint-powerpointlayoutbox)

[PowerPointSlideCompositionContext.cs:155](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L155)

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)` [#](#method-addmetricstrip-collections-generic-ienumerable-officeimo-powerpoint-powerpointmetric-officeimo-powerpoint-powerpointlayoutbox-officeimo-powerpoint-powerpointmetricstripvariant)

[PowerPointSlideCompositionContext.cs:163](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L163)

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)` [#](#method-addprocesstimeline-collections-generic-ienumerable-officeimo-powerpoint-powerpointprocessstep-officeimo-powerpoint-powerpointprocessslideoptions)

[PowerPointSlideCompositionContext.cs:140](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L140)

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)` [#](#method-addprocesstimeline-collections-generic-ienumerable-officeimo-powerpoint-powerpointprocessstep-officeimo-powerpoint-powerpointlayoutbox-officeimo-powerpoint-powerpointprocessslideoptions)

[PowerPointSlideCompositionContext.cs:145](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L145)

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)` [#](#method-addtextblock-string-officeimo-powerpoint-powerpointlayoutbox-nullable-officeimo-officelength-boolean-string)

[PowerPointSlideCompositionContext.cs:111](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L111)

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**

Returns

`PowerPointTextBox`

`public IReadOnlyList<PowerPointShape> AddTitle(string title, string? subtitle = null)` [#](#method-addtitle-string-string)

[PowerPointSlideCompositionContext.cs:97](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L97)

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)` [#](#method-addvisualframe-officeimo-powerpoint-powerpointlayoutbox-string)

[PowerPointSlideCompositionContext.cs:177](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L177)

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)` [#](#method-addvisualframe-officeimo-powerpoint-powerpointlayoutbox-officeimo-powerpoint-powerpointvisualframevariant)

[PowerPointSlideCompositionContext.cs:184](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L184)

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)` [#](#method-addvisualframe-officeimo-powerpoint-powerpointlayoutbox-string-officeimo-powerpoint-powerpointvisualframevariant)

[PowerPointSlideCompositionContext.cs:191](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L191)

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)` [#](#method-contentarea-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength)

[PowerPointSlideCompositionContext.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L50)

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**

Returns

`PowerPointLayoutBox`

`public PowerPointLayoutBox[] ContentColumns(int columnCount, OfficeLength? gutter = null, OfficeLength? top = null, OfficeLength? bottomMargin = null, OfficeLength? horizontalMargin = null)` [#](#method-contentcolumns-int32-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength)

[PowerPointSlideCompositionContext.cs:69](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L69)

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**

Returns

`PowerPointLayoutBox[]`

`public PowerPointLayoutBox[,] ContentGrid(int rowCount, int columnCount, OfficeLength? rowGutter = null, OfficeLength? columnGutter = null, OfficeLength? top = null, OfficeLength? bottomMargin = null, OfficeLength? horizontalMargin = null)` [#](#method-contentgrid-int32-int32-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength)

[PowerPointSlideCompositionContext.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L82)

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**

Returns

`PowerPointLayoutBox[,]`

`public PowerPointLayoutBox[] ContentRows(int rowCount, OfficeLength? gutter = null, OfficeLength? top = null, OfficeLength? bottomMargin = null, OfficeLength? horizontalMargin = null)` [#](#method-contentrows-int32-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength-nullable-officeimo-officelength)

[PowerPointSlideCompositionContext.cs:75](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L75)

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**

Returns

`PowerPointLayoutBox[]`

`public PowerPointCompositionLayout UsePreset(PowerPointCompositionPreset preset = Auto, PowerPointCompositionVariant variant = Auto, OfficeLength? top = null, OfficeLength? bottomMargin = null, OfficeLength? horizontalMargin = null)` [#](#member-351b545a335882c0346a0d58)

[PowerPointSlideCompositionContext.cs:89](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L89)

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**

Returns

`PowerPointCompositionLayout`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public PowerPointSlide Slide { get; }` [#](#property-slide)

[PowerPointSlideCompositionContext.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/90fbca6300454f4c57161551de8649ac9ee04cbd/OfficeIMO.PowerPoint/PowerPointSlideCompositionContext.cs#L28)

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

<!-- PowerForge markdown artifact sha256:8966E393EE8961BCB70BAFF4CA0443C064002070EA3307CD368B1566272E5925 -->
