Presentation

Presentation()

This constructor creates new presentation from scratch. Created presentation has one empty slide.

public Presentation()

See Also


Presentation(LoadOptions)

This constructor creates new presentation from scratch. Created presentation has one empty slide.

public Presentation(LoadOptions loadOptions)
Parameter Type Description
loadOptions LoadOptions Additional load options.

See Also


Presentation(Stream)

This constructor is the primary mechanism for reading an existing Presentation.

public Presentation(Stream stream)
Parameter Type Description
stream Stream Input stream.

Examples

[C#]

FileStream fis = new FileStream("demo.pptx", FileMode.Open, FileAccess.Read);
Presentation pres = new Presentation(fis);
fis.Close();

[Visual Basic]

Dim fis As FileStream = New FileStream("demo.pptx", FileMode.Open, FileAccess.Read)
Dim pres As Presentation = New Presentation(fis)
fis.Close()

See Also


Presentation(Stream, LoadOptions)

This constructor is the primary mechanism for reading an existing Presentation.

public Presentation(Stream stream, LoadOptions loadOptions)
Parameter Type Description
stream Stream Input stream.
loadOptions LoadOptions Additional load options.

See Also


Presentation(string)

This constructor gets a source file path from which the contents of the Presentation are read.

public Presentation(string file)
Parameter Type Description
file String Input file.

Exceptions

exception condition
ArgumentException Thrown when input file has zero length

Examples

[C#]

Presentation pres = new Presentation("demo.pptx");

[Visual Basic]

Dim pres As Presentation = New Presentation("demo.pptx")

See Also


Presentation(string, LoadOptions)

This constructor gets a source file path from which the contents of the Presentation are read.

public Presentation(string file, LoadOptions loadOptions)
Parameter Type Description
file String Input file.
loadOptions LoadOptions Additional load options.

Exceptions

exception condition
ArgumentException Thrown when input file has zero length

See Also