officefileapi-devexpress-dot-xtrarichedit-dot-richeditview-625046e8.md
Gets or sets the current zoom level used to display the document.
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
[DefaultValue(1F)]
public float ZoomFactor { get; set; }
<DefaultValue(1F)>
Public Property ZoomFactor As Single
| Type | Default | Description |
|---|---|---|
| Single | 1 |
The factor by which the contents of the control is zoomed.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the ZoomFactor property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-richedit-in-an-active-grid-cell/CS/Form1.cs#L29
richEditControl.ActiveViewType = RichEditViewType.PrintLayout;
richEditControl.ActiveView.ZoomFactor = 2f;
richEditControl.Document.Sections[0].Margins.Left = 50;
winforms-tabbed-ui-control-based-document/CS/DcoumentManagerContentGenerator/Form1.cs#L29
newTB.ActiveViewType = DevExpress.XtraRichEdit.RichEditViewType.PrintLayout;
newTB.Views.PrintLayoutView.ZoomFactor = 0.7f;
newTB.Name = s + index.ToString();
winforms-richedit-layout-api/CS/Form1.cs#L56
{
richEditControl1.ActiveView.ZoomFactor = trackBarControl1.Value / 100f;
}
how-to-add-a-watermark-to-the-document/CS/Form1.cs#L15
richEditControl1.Text = StringSample.SampleText;
richEditControl1.ActiveView.ZoomFactor = .5f;
}
winforms-richedit-in-an-active-grid-cell/VB/Form1.vb#L28
richEditControl.ActiveViewType = RichEditViewType.PrintLayout
richEditControl.ActiveView.ZoomFactor = 2F
richEditControl.Document.Sections(0).Margins.Left = 50
winforms-tabbed-ui-control-based-document/VB/DcoumentManagerContentGenerator/Form1.vb#L31
newTB.ActiveViewType = DevExpress.XtraRichEdit.RichEditViewType.PrintLayout
newTB.Views.PrintLayoutView.ZoomFactor = 0.7f
newTB.Name = s & index.ToString()
winforms-richedit-layout-api/VB/Form1.vb#L45
Private Sub trackBarControl1_EditValueChanged(ByVal sender As Object, ByVal e As EventArgs) Handles trackBarControl1.EditValueChanged
richEditControl1.ActiveView.ZoomFactor = trackBarControl1.Value / 100F
End Sub
how-to-add-a-watermark-to-the-document/VB/Form1.vb#L17
richEditControl1.Text = StringSample.SampleText
richEditControl1.ActiveView.ZoomFactor = 0.5F
End Sub
See Also