Font Property
- Namespace
TXTextControl
- 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 the control's font.
Syntax
Font (Font)
Gets or sets the control's font.
Only in TXTextControl.TextControl.Core.SDK.
public Font Font { get; set; }Public Property Font As FontFont (System.Drawing.Font)
Only in TXTextControl.TextControl.ASP.SDK.
public System.Drawing.Font Font { get; set; }Public Property Font As System.Drawing.FontExamples
The following example uses ServerTextControl.Font to configure font as part of the server text control workflow. The configured value is checked before the workflow continues.
textControl.Font = new System.Drawing.Font("Arial", 11.0f);
if (textControl.Font != null)
{
Console.WriteLine("Server Text Control: Font is available.");
}textControl.Font = New System.Drawing.Font("Arial", 11.0F)
If textControl.Font IsNot Nothing Then
Console.WriteLine("Server Text Control: Font is available.")
End If