# PowerPointTemplateLayoutMap

Maps semantic deck-plan slide kinds to named template layouts.

Class 

`OfficeIMO.PowerPoint`

**Namespace**

`OfficeIMO.PowerPoint`

**Assembly**

`OfficeIMO.PowerPoint`

**Source revision**

`bff9a667c24d` with working tree changes

**Source**

[PowerPointTemplateLayoutMap.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.PowerPoint/PowerPointTemplateLayoutMap.cs#L6)

**Modifiers**

sealed

Maps semantic deck-plan slide kinds to named template layouts.

## Inheritance

- object
- PowerPointTemplateLayoutMap

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Create PowerPoint Decks from Templates](/docs/powerpoint/templates/) Guide
  
  Inspect a corporate PPTX or POTX template, pick layouts and placeholders by name, create decks from it, and reuse its brand colors and fonts.

## 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.

### Returned or exposed by 2

- Property [PowerPointCompositionOptions.TemplateLayouts](/api/powerpoint/officeimo-powerpoint-powerpointcompositionoptions/#property-templatelayouts)
- Method [PowerPointTemplateLayoutMap.Map](/api/powerpoint/officeimo-powerpoint-powerpointtemplatelayoutmap/#method-map-officeimo-powerpoint-powerpointdeckplanslidekind-officeimo-powerpoint-powerpointtemplatelayoutinfo)

Filter members 

Show inherited

## Constructors

`public PowerPointTemplateLayoutMap()` [#](#constructor-ctor)

[PowerPointTemplateLayoutMap.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.PowerPoint/PowerPointTemplateLayoutMap.cs#L6)

## Methods

Map 2 overloads

`public PowerPointTemplateLayoutMap Map(PowerPointDeckPlanSlideKind kind, PowerPointTemplateLayoutInfo layout)` [#](#method-map-officeimo-powerpoint-powerpointdeckplanslidekind-officeimo-powerpoint-powerpointtemplatelayoutinfo)

[PowerPointTemplateLayoutMap.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.PowerPoint/PowerPointTemplateLayoutMap.cs#L15)

Maps a semantic kind to an inventoried layout.

Parameters

**kind OfficeIMO.PowerPoint.PowerPointDeckPlanSlideKind required**

**layout OfficeIMO.PowerPoint.PowerPointTemplateLayoutInfo required**

Returns

`PowerPointTemplateLayoutMap`

`public PowerPointTemplateLayoutMap Map(PowerPointDeckPlanSlideKind kind, PowerPointTemplateInventory inventory, string layoutName)` [#](#method-map-officeimo-powerpoint-powerpointdeckplanslidekind-officeimo-powerpoint-powerpointtemplateinventory-string)

[PowerPointTemplateLayoutMap.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.PowerPoint/PowerPointTemplateLayoutMap.cs#L22)

Maps a semantic kind by resolving a template layout name.

Parameters

**kind OfficeIMO.PowerPoint.PowerPointDeckPlanSlideKind required**

**inventory OfficeIMO.PowerPoint.PowerPointTemplateInventory required**

**layoutName string required**

Returns

`PowerPointTemplateLayoutMap`

`public PowerPointTemplateLayoutInfo? Resolve(PowerPointDeckPlanSlideKind kind)` [#](#method-resolve-officeimo-powerpoint-powerpointdeckplanslidekind)

[PowerPointTemplateLayoutMap.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.PowerPoint/PowerPointTemplateLayoutMap.cs#L28)

Returns the mapped layout, or null when the semantic kind uses the default layout.

Parameters

**kind OfficeIMO.PowerPoint.PowerPointDeckPlanSlideKind required**

Returns

`PowerPointTemplateLayoutInfo?`

## 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 IReadOnlyDictionary<PowerPointDeckPlanSlideKind, PowerPointTemplateLayoutInfo> Layouts { get; }` [#](#property-layouts)

[PowerPointTemplateLayoutMap.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/bff9a667c24d59899fb7c399cda533851b4a66d8/OfficeIMO.PowerPoint/PowerPointTemplateLayoutMap.cs#L10)

Configured semantic layout mappings.

<!-- PowerForge markdown artifact sha256:1A1C3C6DBCA6D9BB0321EE5979D3DF2BFB6F53E5341ACE31274C7F44FCA72EF1 -->
