Back to Devexpress

TextColumnBase.FontSize Property

maui-devexpress-dot-maui-dot-datagrid-dot-textcolumnbase-3c7cf794.md

latest2.0 KB
Original Source

TextColumnBase.FontSize Property

Gets or sets the font size for the text in column’s cells. This is a bindable property.

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.dll

NuGet Package : DevExpress.Maui.DataGrid

Declaration

csharp
[TypeConverter(typeof(FontSizeConverter))]
public double FontSize { get; set; }

Property Value

TypeDescription
Double

The font size.

|

Remarks

You can also use the BackgroundColor/FontColor properties to configure the background and text color for the column’s cells, and the FontFamily/FontAttributes properties to change the font of cells’ text.

To customize the appearance of a specific cell, handle the CustomCellAppearance event.

Use the Padding property to set the text padding for a column’s cells.

Example

The following example shows how to customize the appearance of a specific column in the grid:

xaml
<dxg:NumberColumn FontSize="18" 
                      FontColor="Brown" 
                      FontAttributes="Bold" 
                      BackgroundColor="LightGoldenrodYellow" />

See Also

TextColumnBase Class

TextColumnBase Members

DevExpress.Maui.DataGrid Namespace