this.xamRichTextEditor.ZoomLevel = 2.0;
This topic explains how to set and obtain the view zoom level in the xamRichTextEditor ™ control.
The following topics are prerequisites to understanding this topic:
This topic contains the following sections:
The following table briefly explains the configurable aspects of the xamRichTextEditor control and maps them to their specific properties.
Sets the editor’s zoom level using the type double between 0.2 and 4.0, with 1.0 representing 100%.
The following table maps the desired configuration to its specific property settings.
The code snippet below demonstrates how adjust the view zoom level to 200%:
In C#:
this.xamRichTextEditor.ZoomLevel = 2.0;
In Visual Basic:
Me.xamRichTextEditor.ZoomLevel = 2.0
Obtains the editor’s zoom level in a value of type double.
The following table maps the desired configuration to its specific property settings.
The code snippet below demonstrates how to obtain the view zoom level:
In C#:
double zoom = this.xamRichTextEditor.ZoomLevel;
In Visual Basic:
Dim zoom As Double = Me.xamRichTextEditor1.ZoomLevel
Obtain the editor’s zoom level as a percent.
The following table maps the desired configuration to its specific property settings.
The code snippet below demonstrates how to obtain the view zoom level as a percent:
In C#:
int zoomInPercents = this.xamRichTextEditor.ZoomLevelAsPercentage;
In Visual Basic:
Dim zoomInPercents As Integer = Me.xamRichTextEditor1.ZoomLevelAsPercentage
The following topics provide additional information related to this topic.