Xceed Grid for WinForms v4.3 Documentation
CellFont Property (GroupByRow)
Example 


Xceed.Grid.v4.3 Assembly > Xceed.Grid Namespace > GroupByRow Class : CellFont Property
Gets or sets the font of the cells of the GroupByRow.
Syntax
'Declaration
 
<DescriptionAttribute("The font of the cells of the GroupByRow.")>
<CategoryAttribute("Appearance")>
<AmbientValueAttribute("")>
<LocalizableAttribute(True)>
<ApplyToDesignerAttribute(True)>
Public Property CellFont As Font
'Usage
 
Dim instance As GroupByRow
Dim value As Font
 
instance.CellFont = value
 
value = instance.CellFont
[Description("The font of the cells of the GroupByRow.")]
[Category("Appearance")]
[AmbientValue("")]
[Localizable(true)]
[ApplyToDesigner(true)]
public Font CellFont {get; set;}

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

To reset the value of the Font property to its default value, DefaultCellFont, the ResetCellFont method must be called or the CellFont property set to a null reference (Nothing in Visual Basic).

Example
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 );
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

GroupByRow Class
GroupByRow Members