TextFont Property
Description
Font used to display the text / caption of the GridRecordItems.
Property Type
Read-write property.
Syntax (Visual Basic)
Public Property TextFont() As Font
Remarks
This is the font used to display the text / caption of all the GridRecordItems in the GridControl.
You can change the font for each individual GridRecordItem using the GridRecordItemMetrics object in the BeforeDrawRow event.
Example
Setting the font used to display the text/caption of GridRecordItems (Visual Basic)
This sample illustrates how to change the font used to display the text/caption of the GridRecordItems.
Dim TextFont As StdFont
Set TextFont = Me.Font
TextFont.Size = 6
TextFont.Bold = True
' Applies the newly created font to the GridControl's text font
Set wndGridControl.PaintManager.TextFont = TextFont
See Also
- GridPaintManager Object
- GridRecordItem Caption Property
- Changing the font in each individual GridRecordItem
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.