From 4dc6ea49de5744c8d8fc8eae3e4cefeac5babd9f Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 4 Dec 2013 18:44:28 +0000 Subject: [PATCH] Added methods to get/set document zoom. --- PROMS/LBWordLibrary/LBComObject.cs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/PROMS/LBWordLibrary/LBComObject.cs b/PROMS/LBWordLibrary/LBComObject.cs index 7f5729b5..d4822fcc 100644 --- a/PROMS/LBWordLibrary/LBComObject.cs +++ b/PROMS/LBWordLibrary/LBComObject.cs @@ -795,6 +795,10 @@ namespace LBWordLibrary get { return (LBWdRevisionsView)GetProperty("RevisionsView"); } set { SetProperty("RevisionsView", value); } } + public LBZoom Zoom + { + get { return new LBZoom(GetProperty("Zoom")); } + } } public enum LBWdColorIndex { @@ -1292,4 +1296,26 @@ namespace LBWordLibrary public LBPictureFormat() { } public LBPictureFormat(Object item) : base(item) { } } + public partial class LBZoom : LBComObject + { + public LBZoom() { } + public LBZoom(Object item) : base(item) { } + public LBWdPageFit PageFit + { + get { return (LBWdPageFit)GetProperty("PageFit"); } + set { SetProperty("PageFit", value); } + } + public int Percentage + { + get { return (GetProperty("Percentage") as int? ?? 0); } + set { SetProperty("Percentage", value); } + } + } + public enum LBWdPageFit + { + wdPageFitNone = 0, + wdPageFitFullPage = 1, + wdPageFitBestFit = 2, + wdPageFitTextFit = 3 + } }