# PowerPointTemplateCreationOptions

Options for creating an editable presentation from a `.pptx` or `.potx` template.

Class 

`OfficeIMO.PowerPoint`

**Namespace**

`OfficeIMO.PowerPoint`

**Assembly**

`OfficeIMO.PowerPoint`

**Source revision**

`07c6bff0a794` with working tree changes

**Source**

[PowerPointDocument.Templates.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.PowerPoint/PowerPointDocument.Templates.cs#L20)

**Modifiers**

sealed

Options for creating an editable presentation from a `.pptx` or `.potx` template.

## Inheritance

- object
- PowerPointTemplateCreationOptions

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

- Method [PowerPointTemplate.CreateDocument](/api/powerpoint/officeimo-powerpoint-powerpointtemplate/#method-createdocument-string-string-officeimo-powerpoint-powerpointtemplatecreationoptions) parameter `options`

Filter members 

Show inherited

## Constructors

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

[PowerPointDocument.Templates.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.PowerPoint/PowerPointDocument.Templates.cs#L20)

## 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 PowerPointTemplateSlideRetention SlideRetention { get; set; }` [#](#property-slideretention)

[PowerPointDocument.Templates.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.PowerPoint/PowerPointDocument.Templates.cs#L19)

Source-slide retention policy.

`public ISet<int> SourceSlideIndexes { get; }` [#](#property-sourceslideindexes)

[PowerPointDocument.Templates.cs:23](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.PowerPoint/PowerPointDocument.Templates.cs#L23)

Zero-based source slide indexes used when [PowerPointTemplateCreationOptions.SlideRetention](/api/powerpoint/officeimo-powerpoint-powerpointtemplatecreationoptions/) is Selected.

`public bool HideRetainedSourceSlides { get; set; }` [#](#property-hideretainedsourceslides)

[PowerPointDocument.Templates.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.PowerPoint/PowerPointDocument.Templates.cs#L26)

Marks retained source slides hidden, useful for reference or appendix templates.

`public bool Overwrite { get; set; }` [#](#property-overwrite)

[PowerPointDocument.Templates.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/07c6bff0a79428344663938dd8a3f4e85ca513a2/OfficeIMO.PowerPoint/PowerPointDocument.Templates.cs#L29)

Allows replacing an existing output file.

<!-- PowerForge markdown artifact sha256:C4824737DB7BB1F66FBBA04312E1D1997D439CDC01CB595CD6AFFA2E926DEF12 -->
