Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataGridTextColumn.FontFamily Property

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)

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 null.

ExceptionCondition
NullReferenceException

The FontFamily value has not been set.

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 null.

Silverlight

Supported in: 5, 4, 3

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

Community Additions

ADD
Show:
© 2015 Microsoft