NormalViewProperties
NormalViewProperties 类
表示普通视图属性。普通视图由三个内容区域组成:幻灯片本身、侧内容区域和底部内容区域。
public class NormalViewProperties : INormalViewProperties
属性
| 名称 | 描述 |
|---|---|
| HorizontalBarState { get; set; } | 指定水平分割条应显示的状态。水平分割条将幻灯片与幻灯片下方的内容区域分隔开来。 |
| PreferSingleView { get; set; } | 指定用户是否更喜欢在全窗口单内容区域中查看,而不是使用具有三个内容区域的标准普通视图。如果启用,应用程序可能会选择在整个窗口中显示其中一个内容区域。可读写 Boolean。 |
| RestoredLeft { get; } | 此元素指定正常视图侧内容区域的大小,当该区域为可变恢复大小(既未最小化也未最大化)时。只读 INormalViewRestoredProperties。 |
| RestoredTop { get; } | 此元素指定正常视图顶部幻灯片区域的大小,当该区域为可变恢复大小(既未最小化也未最大化)时。只读 INormalViewRestoredProperties。 |
| ShowOutlineIcons { get; set; } | 指定在普通视图模式的任何内容区域显示大纲内容时,应用程序是否应显示图标。可读写 Boolean。 |
| SnapVerticalSplitter { get; set; } | 指定当侧区域足够小时,垂直分割条是否应捕捉到最小化状态。可读写 Boolean。 |
| VerticalBarState { get; set; } | 指定垂直分割条应显示的状态。垂直分割条将幻灯片与侧内容区域分隔开来。 |
示例
以下示例演示如何配置 PowerPoint 演示文稿的 ViewProperties.NormalViewProperties 属性。
[C#]
//实例化一个表示演示文稿文件的演示对象
using (Presentation pres = new Presentation("demo.pptx"))
{
pres.ViewProperties.NormalViewProperties.HorizontalBarState = SplitterBarStateType.Restored;
pres.ViewProperties.NormalViewProperties.VerticalBarState = SplitterBarStateType.Maximized;
pres.ViewProperties.NormalViewProperties.RestoredTop.AutoAdjust = true;
pres.ViewProperties.NormalViewProperties.RestoredTop.DimensionSize = 80;
pres.ViewProperties.NormalViewProperties.ShowOutlineIcons = true;
pres.Save("presentation_normal_view_state.pptx", SaveFormat.Pptx);
}
另请参阅
- 接口 INormalViewProperties
- 命名空间 Aspose.Slides
- 程序集 Aspose.Slides