Gets or sets the preview zoom mode.

Namespace:  C1.Win.C1Preview
Assembly:  C1.Win.C1Report.2 (in C1.Win.C1Report.2.dll)

Syntax

C#
[DefaultValueAttribute(ZoomModeEnum.WholePage)]
[RefreshPropertiesAttribute(RefreshProperties.All)]
public ZoomModeEnum ZoomMode { get; set; }
Visual Basic
<DefaultValueAttribute(ZoomModeEnum.WholePage)> _
<RefreshPropertiesAttribute(RefreshProperties.All)> _
Public Property ZoomMode As ZoomModeEnum
	Get
	Set

Remarks

The default value for this property is ZoomModeEnum.WholePage.

Examples

The following example sets the ZoomMode property to actual size:

Copy CodeVisual Basic
Private Sub menuItemViewPage100_Click(ByVal sender As Object, ByVal e As System.EventArgs) 
    If C1PrintPreviewControl1 Is Nothing Then 
        Return 
    End If 
    C1PrintPreviewControl1.PreviewPane.ZoomMode = C1.Win.C1Preview.ZoomModeEnum.ActualSize 
End Sub
Copy CodeC#
private void menuItemViewPage100_Click(object sender, System.EventArgs e)
{
    if (c1PrintPreviewControl1 == null)
        return;
    c1PrintPreviewControl1.PreviewPane.ZoomMode = C1.Win.C1Preview.ZoomModeEnum.ActualSize;
}

See Also