DataGridTextColumn.FontSize Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the font size of the content of cells in the column.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)

Syntax

'Declaration
<DefaultValueAttribute()> _
Public Property FontSize As Double
[DefaultValueAttribute()]
public double FontSize { get; set; }
<sdk:DataGridTextColumn FontSize="double" .../>

Property Value

Type: System.Double
The font size of the content of cells in the column. The default is Double.NaN.

Remarks

If you do not explicitly set the DataGridTextColumn.FontSize property, the first non-null FontSize property specified in the visual tree is used for display, but the DataGridTextColumn.FontSize property returns Double.NaN.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.