Gets or sets the font of the grid element.
Property Value
A reference to a
System.Drawing.Font object representing the font to use. If a null reference (
Nothing in Visual Basic), then the parent's font is used.
The following example demonstrates how to adjust the font of a grid element to make it bold:
gridElement.Font = New Font( gridElement.Font, gridElement.Font.Style Or FontStyle.Bold )
gridElement.Font = new Font( gridElement.Font, gridElement.Font.Style | FontStyle.Bold );
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2