Presentation
内容
[
隐藏
]Presentation()
此构造函数从头开始创建新的表示。 创建的演示文稿有一张空白幻灯片。
public Presentation()
也可以看看
- class Presentation
- 命名空间 Aspose.Slides
- 部件 Aspose.Slides
Presentation(LoadOptions)
此构造函数从头开始创建新的表示。 创建的演示文稿有一张空白幻灯片。
public Presentation(LoadOptions loadOptions)
范围 | 类型 | 描述 |
---|---|---|
loadOptions | LoadOptions | 附加加载选项。 |
也可以看看
- class LoadOptions
- class Presentation
- 命名空间 Aspose.Slides
- 部件 Aspose.Slides
Presentation(Stream)
此构造函数是读取现有演示文稿的主要机制。
public Presentation(Stream stream)
范围 | 类型 | 描述 |
---|---|---|
stream | Stream | 输入流。 |
例子
[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()
也可以看看
- class Presentation
- 命名空间 Aspose.Slides
- 部件 Aspose.Slides
Presentation(Stream, LoadOptions)
此构造函数是读取现有演示文稿的主要机制。
public Presentation(Stream stream, LoadOptions loadOptions)
范围 | 类型 | 描述 |
---|---|---|
stream | Stream | 输入流。 |
loadOptions | LoadOptions | 附加加载选项。 |
也可以看看
- class LoadOptions
- class Presentation
- 命名空间 Aspose.Slides
- 部件 Aspose.Slides
Presentation(string)
此构造函数获取源文件路径,从中读取 演示文稿的内容。
public Presentation(string file)
范围 | 类型 | 描述 |
---|---|---|
file | String | 输入文件。 |
例外
例外 | (健康)状况 |
---|---|
ArgumentException | 当输入文件长度为零时抛出 |
例子
[C#]
Presentation pres = new Presentation("demo.pptx");
[Visual Basic]
Dim pres As Presentation = New Presentation("demo.pptx")
也可以看看
- class Presentation
- 命名空间 Aspose.Slides
- 部件 Aspose.Slides
Presentation(string, LoadOptions)
此构造函数获取源文件路径,从中读取 演示文稿的内容。
public Presentation(string file, LoadOptions loadOptions)
范围 | 类型 | 描述 |
---|---|---|
file | String | 输入文件。 |
loadOptions | LoadOptions | 附加加载选项。 |
例外
例外 | (健康)状况 |
---|---|
ArgumentException | 当输入文件长度为零时抛出 |
也可以看看
- class LoadOptions
- class Presentation
- 命名空间 Aspose.Slides
- 部件 Aspose.Slides