TX Text Control .NET for WPF

FontSize Property

Property|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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}");