# OdpSlide

An XML-backed ODP slide. Review signatures, members, parameters, type relationships, and available reference details in OfficeIMO.OpenDocument API Reference.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdpSlide.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L81)

**Modifiers**

sealed

An XML-backed ODP slide.

## Inheritance

- object
- OdpSlide

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Create and Read ODT, ODS and ODP Files](/docs/open-document/create-read/) Guide
  
  Create OpenDocument text, spreadsheet and presentation files, read their content, edit them in place, and open password-protected files.

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

- Method [OdpPresentation.AddSlide](/api/open-document/officeimo-opendocument-odppresentation/#method-addslide-string)
- Property [OdpPresentation.Slides](/api/open-document/officeimo-opendocument-odppresentation/#property-slides)

Filter members 

Show inherited

## Methods

`public OdpAnimation AddAnimation(OdpShape target, string attributeName, string from, string to, TimeSpan duration)` [#](#method-addanimation-officeimo-opendocument-odpshape-string-string-string-timespan)

[OdpSlide.cs:109](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L109)

Adds a bounded basic animation effect for a shape attribute.

Parameters

**target OfficeIMO.OpenDocument.OdpShape required**

**attributeName string required**

**from string required**

**to string required**

**duration System.TimeSpan required**

Returns

`OdpAnimation`

`public OdpEllipse AddEllipse(OdfRect bounds, string? name = null)` [#](#method-addellipse-officeimo-opendocument-odfrect-string)

[OdpSlide.cs:89](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L89)

Adds an ellipse.

Parameters

**bounds OfficeIMO.OpenDocument.OdfRect required**

**name string? = null optional**

Returns

`OdpEllipse`

`public OdpAnimation AddFadeInAnimation(OdpShape target, TimeSpan duration)` [#](#method-addfadeinanimation-officeimo-opendocument-odpshape-timespan)

[OdpSlide.cs:131](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L131)

Adds an opacity fade-in effect.

Parameters

**target OfficeIMO.OpenDocument.OdpShape required**

**duration System.TimeSpan required**

Returns

`OdpAnimation`

`public OdpGroup AddGroup(string? name = null)` [#](#method-addgroup-string)

[OdpSlide.cs:97](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L97)

Adds a group.

Parameters

**name string? = null optional**

Returns

`OdpGroup`

`public OdpImage AddImage(byte[] data, string fileName, OdfRect bounds, string? name = null)` [#](#method-addimage-byte-string-officeimo-opendocument-odfrect-string)

[OdpSlide.cs:101](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L101)

Adds an image frame.

Parameters

**data byte[] required**

**fileName string required**

**bounds OfficeIMO.OpenDocument.OdfRect required**

**name string? = null optional**

Returns

`OdpImage`

`public OdpLine AddLine(OdfLength x1, OdfLength y1, OdfLength x2, OdfLength y2, string? name = null)` [#](#method-addline-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-officeimo-opendocument-odflength-string)

[OdpSlide.cs:93](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L93)

Adds a line.

Parameters

**x1 OfficeIMO.OpenDocument.OdfLength required**

**y1 OfficeIMO.OpenDocument.OdfLength required**

**x2 OfficeIMO.OpenDocument.OdfLength required**

**y2 OfficeIMO.OpenDocument.OdfLength required**

**name string? = null optional**

Returns

`OdpLine`

`public OdpRectangle AddRectangle(OdfRect bounds, string? name = null)` [#](#method-addrectangle-officeimo-opendocument-odfrect-string)

[OdpSlide.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L85)

Adds a rectangle.

Parameters

**bounds OfficeIMO.OpenDocument.OdfRect required**

**name string? = null optional**

Returns

`OdpRectangle`

`public OdpTable AddTable(OdfRect bounds, int rows, int columns, string? name = null)` [#](#method-addtable-officeimo-opendocument-odfrect-int32-int32-string)

[OdpSlide.cs:105](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L105)

Adds a presentation table frame.

Parameters

**bounds OfficeIMO.OpenDocument.OdfRect required**

**rows int required**

**columns int required**

**name string? = null optional**

Returns

`OdpTable`

`public OdpTextBox AddTextBox(OdfRect bounds, string? text = null, string? name = null)` [#](#method-addtextbox-officeimo-opendocument-odfrect-string-string)

[OdpSlide.cs:81](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L81)

Adds a text box.

Parameters

**bounds OfficeIMO.OpenDocument.OdfRect required**

**text string? = null optional**

**name string? = null optional**

Returns

`OdpTextBox`

`public OdpNotes GetOrCreateSpeakerNotes()` [#](#method-getorcreatespeakernotes)

[OdpSlide.cs:134](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L134)

Gets or creates the speaker-notes container.

Returns

`OdpNotes`

## 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 string Name { get; set; }` [#](#property-name)

[OdpSlide.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L10)

Slide name.

`public bool Hidden { get; set; }` [#](#property-hidden)

[OdpSlide.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L15)

Whether the slide is hidden from the normal show.

`public string? MasterPageName { get; set; }` [#](#property-masterpagename)

[OdpSlide.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L20)

Referenced master page name.

`public string? LayoutName { get; set; }` [#](#property-layoutname)

[OdpSlide.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L25)

Referenced presentation layout name.

`public IReadOnlyList<OdpShape> Shapes { get; }` [#](#property-shapes)

[OdpSlide.cs:29](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L29)

Slide shapes in XML order.

`public IReadOnlyList<OdpAnimation> Animations { get; }` [#](#property-animations)

[OdpSlide.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L33)

Basic typed animation effects in timing-tree order.

`public OdpNotes? SpeakerNotes { get; }` [#](#property-speakernotes)

[OdpSlide.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L38)

Speaker notes, or null when none are present.

`public OdfColor? BackgroundColor { get; set; }` [#](#property-backgroundcolor)

[OdpSlide.cs:45](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L45)

Slide background fill color.

`public string? TransitionType { get; set; }` [#](#property-transitiontype)

[OdpSlide.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L70)

Raw ODF transition type on the slide's drawing-page style.

`public string? TransitionStyle { get; set; }` [#](#property-transitionstyle)

[OdpSlide.cs:75](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Presentation/OdpSlide.cs#L75)

Raw ODF transition style on the slide's drawing-page style.

<!-- PowerForge markdown artifact sha256:8743B37B67850CF4AD913B6621833632DF59580377C0A013EDDB1F398D99C9FE -->
