Skip to content

CaptionFont Property

Description

Font used to display the caption of GridColumn headers.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property CaptionFont() As Font

Remarks

This font is also used to display the text in the "Group By" box and to display column headers in the FieldChooser.

Example

Setting the Caption Font (Visual Basic)

This sample illustrates how to change the font used to display text in column headers, the FieldChooser, and the Group By box.

Dim CaptionFont As StdFont  

Set CaptionFont = Me.Font  

CaptionFont.Size = 7  

CaptionFont.Bold = True  

' Applies the newly created font to the GridControl's caption font  
Set wndGridControl.PaintManager.CaptionFont = CaptionFont

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.