Presentation

Presentation()

此构造函数从头开始创建新的表示。 创建的演示文稿有一张空白幻灯片。

public Presentation()

也可以看看


Presentation(LoadOptions)

此构造函数从头开始创建新的表示。 创建的演示文稿有一张空白幻灯片。

public Presentation(LoadOptions loadOptions)
范围类型描述
loadOptionsLoadOptions附加加载选项。

也可以看看


Presentation(Stream)

此构造函数是读取现有演示文稿的主要机制。

public Presentation(Stream stream)
范围类型描述
streamStream输入流。

例子

[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()

也可以看看


Presentation(Stream, LoadOptions)

此构造函数是读取现有演示文稿的主要机制。

public Presentation(Stream stream, LoadOptions loadOptions)
范围类型描述
streamStream输入流。
loadOptionsLoadOptions附加加载选项。

也可以看看


Presentation(string)

此构造函数获取源文件路径,从中读取 演示文稿的内容。

public Presentation(string file)
范围类型描述
fileString输入文件。

例外

例外(健康)状况
ArgumentException当输入文件长度为零时抛出

例子

[C#]

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

[Visual Basic]

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

也可以看看


Presentation(string, LoadOptions)

此构造函数获取源文件路径,从中读取 演示文稿的内容。

public Presentation(string file, LoadOptions loadOptions)
范围类型描述
fileString输入文件。
loadOptionsLoadOptions附加加载选项。

例外

例外(健康)状况
ArgumentException当输入文件长度为零时抛出

也可以看看