FontFamily 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 family of the text control. This is a dependency property. The property value has the type System.Windows.Media.FontFamily.
Syntax
public FontFamily FontFamily { get; set; }Public Property FontFamily() As FontFamilyExamples
The following example uses TextControl.FontFamily to configure font family as part of the text control workflow. The configured value is checked before the workflow continues.
textControl.FontFamily = new System.Windows.Media.FontFamily("Segoe UI");
if (textControl.FontFamily != null)
{
Console.WriteLine("Text Control: Font Family is available.");
}textControl.FontFamily = New System.Windows.Media.FontFamily("Segoe UI")
If textControl.FontFamily IsNot Nothing Then
Console.WriteLine("Text Control: Font Family is available.")
End If