Xceed Grid for WinForms v4.3 Documentation
Font Property (GridControl)
Example 


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > GridControl Class : Font Property
Gets or sets the font of the grid.
Syntax
'Declaration
 
<ApplyToDesignerAttribute(True)>

Public Overrides Property Font As Font
'Usage
 
Dim instance As GridControl

Dim value As Font

 

instance.Font = value

 

value = instance.Font
[ApplyToDesigner(true)]

public override Font Font {get; set;}

Property Value

A reference to a System.Drawing.Font object representing the font to use.
Remarks

Because the System.Drawing.Font object is immutable (meaning that you cannot adjust any of its properties), you can only assign the Font property a new Font object. However, you can base the new font on the existing font.

Example
The following example demonstrates how to adjust the font of the grid to make it bold:
grid.Font = New Font( grid.Font, grid.Font.Style Or FontStyle.Bold )
grid.Font = new Font( grid.Font, grid.Font.Style | FontStyle.Bold );
Requirements

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

See Also

Reference

GridControl Class
GridControl Members
Base Implementation in Font