DataGrid.CaptionFont Property

Definition

Gets or sets the font of the grid's caption.

C#
public System.Drawing.Font CaptionFont { get; set; }

Property Value

A Font that represents the caption's font.

Examples

The following code example sets the caption's font using a Font object.

VB
Private Sub SetCaptionFont(ByRef myGrid As DataGrid, newFont As System.Drawing.Font)
    myGrid.CaptionFont = newFont
 End Sub

Remarks

A Font encapsulates a Windows font and provides the methods for manipulating that font.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0

See also