Tab
A newer version of this page is available. Switch to the current version.

ASPxWebControl.GlobalThemeFont Property

Gets or sets the font settings of the theme to be globally applied to all DevExpress web controls across a web page or entire web site.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public static string GlobalThemeFont { get; set; }
Public Shared Property GlobalThemeFont As String

Property Value

Type Description
String

A string value specifying the font settings.

Remarks

Use the GlobalThemeFont property to specify the font settings of the Theme to be applied to all DevExpress web controls within the web site.

Depending on your application needs, you can use the GlobalThemeFont property at different levels within your application.

  • Page Level

    
    protected void Page_PreInit(object sender, EventArgs e){
            DevExpress.Web.ASPxWebControl.GlobalThemeFont = "30px 'Callibri'";
        }
    
  • Application Level - in Global.asax

    
    protected void Application_PreRequestHandlerExecute(object sender, EventArgs e) {
                DevExpress.Web.ASPxWebControl.GlobalThemeFont = "30px 'Callibri'";
            }
    

See Changing Theme Base Color and Font Settings for more information.

See Also