Gets or sets the zoom factor (1 is actual size).
Namespace:
C1.Win.C1PreviewAssembly: C1.Win.C1Report.2 (in C1.Win.C1Report.2.dll)
Syntax
C# |
---|
[RefreshPropertiesAttribute(RefreshProperties.All)] public double ZoomFactor { get; set; } |
Visual Basic |
---|
<RefreshPropertiesAttribute(RefreshProperties.All)> _ Public Property ZoomFactor As Double Get Set |
Examples
The following example sets the ZoomFactor property to 1:
Copy CodeVisual Basic
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) C1PrintPreviewControl1.PreviewPane.ZoomFactor = 1 C1PrintPreviewControl1.PreviewPane.HideMarginsState = C1.Win.C1Preview.HideMarginsFlags.All ' Set padding between pages with hidden margins to 0, so that no gap is visible. C1PrintPreviewControl1.PreviewPane.PagesPaddingSmall = New Size(0, 0) ' Set the zoom mode. C1PrintPreviewControl1.PreviewPane.ZoomMode = C1.Win.C1Preview.ZoomModeEnum.PageWidth ' Make the document. MakeDoc1(c1PrintDocument1) C1PrintDocument1.Reflow() End Sub |
Copy CodeC#
private void Form1_Load(object sender, EventArgs e) { c1PrintPreviewControl1.PreviewPane.ZoomFactor = 1; c1PrintPreviewControl1.PreviewPane.HideMarginsState = C1.Win.C1Preview.HideMarginsFlags.All; // Set padding between pages with hidden margins to 0, so that no gap is visible. c1PrintPreviewControl1.PreviewPane.PagesPaddingSmall = new Size(0, 0); // Set the zoom mode. c1PrintPreviewControl1.PreviewPane.ZoomMode = ZoomModeEnum.PageWidth; // Make the document. MakeDoc1(c1PrintDocument1); c1PrintDocument1.Reflow(); } |