Added methods to get/set document zoom.

This commit is contained in:
Rich 2013-12-04 18:44:28 +00:00
parent ab6eab8b69
commit 4dc6ea49de

View File

@ -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
}
}