Resolution Property
- 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
Gets or sets a resolution, in dots per inch (dpi). This resolution is used for all images, provided through the View property and for all dialogboxes provided through the GetDialogBox method. When this property is set to zero, the system resolution is used.
Syntax
public int Resolution { get; set; }Public Property Resolution As IntegerExamples
The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.Resolution.
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;
textViewGenerator.Resolution = 10;
Console.WriteLine($"Resolution used by Text View Generator: {textViewGenerator.Resolution}");Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection
textViewGenerator.Resolution = 10
Console.WriteLine($"Resolution used by Text View Generator: {textViewGenerator.Resolution}")