ViewOptionsViewType Property |
Namespace: Aspose.Words.Settings
Although Aspose.Words is able to read and write this option, its usage is application-specific. For example MS Word 2013 does not respect the value of this option.
Document doc = new Document(MyDir + "Document.docx"); // We can set the zoom factor to a percentage doc.ViewOptions.ViewType = ViewType.PageLayout; doc.ViewOptions.ZoomPercent = 50; // Or we can set the ZoomType to a different value to avoid using percentages Assert.AreEqual(ZoomType.None, doc.ViewOptions.ZoomType); doc.Save(ArtifactsDir + "ViewOptions.SetZoom.doc");