DataGridTextColumn.FontFamily Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets or sets the font family 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
Public Property FontFamily As FontFamily
public FontFamily FontFamily { get; set; }
<sdk:DataGridTextColumn FontFamily="fontFamilyValue"/>
XAML Values
- fontFamilyValue
For more information on how to specify a font family value as a string, see FontFamily.
Property Value
Type: System.Windows.Media.FontFamily
The font family of the content of cells in the column. The default is nulla null reference (Nothing in Visual Basic).
Remarks
Dependency property identifier field: FontFamilyProperty
If you do not explicitly set the DataGridTextColumn.FontFamily property, the first non-null FontFamily property specified in the visual tree is used for display, but the DataGridTextColumn.FontFamily property returns nulla null reference (Nothing in Visual Basic).
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.