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)
ParameterTypeDescription
loadOptionsLoadOptionsAdditional load options.

See Also


Presentation(Stream)

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

public Presentation(Stream stream)
ParameterTypeDescription
streamStreamInput 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)
ParameterTypeDescription
streamStreamInput stream.
loadOptionsLoadOptionsAdditional 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)
ParameterTypeDescription
fileStringInput file.

Exceptions

exceptioncondition
ArgumentExceptionThrown 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)
ParameterTypeDescription
fileStringInput file.
loadOptionsLoadOptionsAdditional load options.

Exceptions

exceptioncondition
ArgumentExceptionThrown when input file has zero length

See Also