ZoomOption Enumeration
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXTextControl.Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXTextControl.from the setup.dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Specifies options how to set the zoom factor of a TextControl.
Syntax
public enum ZoomOptionPublic Enum ZoomOptionMembers
| Member | Value | Description |
|---|---|---|
| PageWidth | 2 | The zoom factor is calculated so that the complete width of a page becomes visible. |
| TextWidth | 3 | The zoom factor is calculated so that the complete text of a line becomes visible. |
| WholePage | 1 | The zoom factor is calculated so that the current visible page becomes completely visible. |
Examples
The following example selects the Page Width value from the Zoom Option enumeration and uses it as a documented workflow choice.
ZoomOption value = ZoomOption.PageWidth;
Console.WriteLine($"Using Zoom Option: {value}");Dim value As ZoomOption = ZoomOption.PageWidth
Console.WriteLine($"Using Zoom Option: {value}")See Also
TextControl.Zoom Method, WPF.TextControl.Zoom Method.