Class FontHelper
Represents the class to define the FontFamily settings for the Controls
Inheritance
System.Object
FontHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.WinForms.Theme
Assembly: Syncfusion.Shared.Base.dll
Syntax
public static class FontHelper
Properties
CanOverrideFontFamily
Gets or sets a value indicating whether control FontFamily can be overridden by FontFamily settings.
Declaration
public static bool CanOverrideFontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Default value is false. |
Remarks
By default, the control's Font will not be overridden by FontFamily settings if the Font is set in sample level. If this property is enabled, control's Font will be overridden by FontFamily settings event if it is set in sample level. This property should be enabled or disabled before applying the FontFamily property.
FontFamily
Gets or sets the FontFamily used to display text in the Control.
Declaration
public static FontFamily FontFamily { get; set; }
Property Value
Type |
---|
System.Drawing.FontFamily |
Examples
FontHelper.FontFamily = new FontFamily("Times New Roman");