NormalViewProperties
NormalViewProperties class
表示普通视图属性。普通视图由三个内容区域组成:幻灯片本身、侧边内容区域和底部内容区域。
public class NormalViewProperties : INormalViewProperties
Properties
Name | Description |
---|---|
HorizontalBarState { get; set; } | 指定水平分割条应显示的状态。水平分割条将幻灯片与幻灯片下方的内容区域分开。 |
PreferSingleView { get; set; } | 指定用户是否更喜欢在完整窗口中查看单一内容区域,而不是标准的具有三个内容区域的普通视图。如果启用,应用程序可以选择在整个窗口中显示其中一个内容区域。读/写布尔值。 |
RestoredLeft { get; } | 当普通视图的侧边内容区域为可变恢复大小(既不是最小化也不是最大化)时,此元素指定该区域的尺寸。只读 INormalViewRestoredProperties 。 |
RestoredTop { get; } | 当普通视图的顶部幻灯片区域为可变恢复大小(既不是最小化也不是最大化)时,此元素指定该区域的尺寸。只读 INormalViewRestoredProperties 。 |
ShowOutlineIcons { get; set; } | 指定应用程序是否应在普通视图模式的任何内容区域中显示轮廓内容时显示图标。读/写布尔值。 |
SnapVerticalSplitter { get; set; } | 指定当侧边区域足够小时,垂直分割条是否应固定到最小化状态。读/写布尔值。 |
VerticalBarState { get; set; } | 指定垂直分割条应显示的状态。垂直分割条将幻灯片与侧边内容区域分开。 |
Examples
以下示例演示如何配置 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);
}
See Also
- interface INormalViewProperties
- namespace Aspose.Slides
- assembly Aspose.Slides