Gets or sets the font of the title bar's text. The default value is the font type 'Calibri Light' with a size of 18.

Syntax

public System.Drawing.Font TitleFont { get; set; }
Public Property TitleFont() As System.Drawing.Font

Examples

The following snippet shows the TXTextControl.Windows.Forms.Sidebar.TitleFont property. Here, it is set to "Times New Roman" with a fontsize of 12.

TXTextControl.Windows.Forms.Sidebar sidebar = new TXTextControl.Windows.Forms.Sidebar();
sidebar.ShowPinButton = false;
sidebar.IsPinned = true;
sidebar.IsShown = false;
sidebar.IsSizable = false;
sidebar.ShowTitle = false; 
sidebar.TitleFont = new System.Drawing.Font("Times New Roman", 12 ); // here, the TitleFont property is set
Dim sidebar As TXTextControl.Windows.Forms.Sidebar = New TXTextControl.Windows.Forms.Sidebar()
sidebar.ShowPinButton = False
sidebar.IsPinned = True
sidebar.IsShown = False
sidebar.IsSizable = False
sidebar.ShowTitle = False
sidebar.TitleFont = New System.Drawing.Font("Times New Roman", 12) ' here, the TitleFont property is set