ThemeBase.CreateDefaultFont(Color, FontAttributes) Method

Creates and returns a ThemeFontAttributes object with the specified font attributes and color.

Namespace: DevExpress.Mobile.DataGrid.Theme

Assembly: DevExpress.Mobile.Grid.v18.2.dll


public static ThemeFontAttributes CreateDefaultFont(
    Color color,
    FontAttributes attributes
Public Shared Function CreateDefaultFont(
    color As Color,
    attributes As FontAttributes
) As ThemeFontAttributes


Name Type Description
color Xamarin.Forms.Color

The color of the font to be returned.

attributes Xamarin.Forms.FontAttributes

A FontAttributes object that describes the font to be returned.


Type Description

An object of the ThemeFontAttributes type.



This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

This method returns font attributes according to the device on which the application is currently running (either a phone or a tablet). To not take the device into account, call the ThemeBase.CreateDefaultFontForFormEditors method.

See Also