FontSize Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets the font size of the text control in device-independent units (1/96th inch). This is a dependency property.
Syntax
public double FontSize { get; set; }Public Property FontSize() As DoubleExamples
The following example uses TextControl.FontSize to configure font size as part of the text control workflow. The configured value is checked before the workflow continues.
textControl.FontSize = 1.0;
Console.WriteLine($"Font Size used by Text Control: {textControl.FontSize}");textControl.FontSize = 1.0
Console.WriteLine($"Font Size used by Text Control: {textControl.FontSize}")