Zoom Method
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Zooms the contents of the TextViewGenerator.
Syntax
Zoom(int)
Zooms the contents of the TextViewGenerator using the specified zoom factor.
public void Zoom(int zoomFactor);Public Sub Zoom(zoomFactor As Integer)| Parameter | Description |
|---|---|
| zoomFactor | Specifies the zoom factor, in percent. |
Zoom(ZoomOption)
Zooms the contents of the TextViewGenerator using the specified option.
public void Zoom(ZoomOption zoomOption);Public Sub Zoom(zoomOption As ZoomOption)| Parameter | Description |
|---|---|
| zoomOption | Specifies one of the ZoomOption values. |
Examples
The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.Zoom.
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;
textViewGenerator.Zoom(125);
Console.WriteLine("Text View Generator is ready for use.");Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection
textViewGenerator.Zoom(125)
Console.WriteLine("Text View Generator is ready for use.")