Gets or sets the font of the grid's caption.
[Visual Basic] Public Property CaptionFont As Font [C#] public Font CaptionFont {get; set;} [C++] public: __property Font* get_CaptionFont(); public: __property void set_CaptionFont(Font*); [JScript] public function get CaptionFont() : Font; public function set CaptionFont(Font);
A Font that represents the caption's font.
A Font encapsulates a Windows font and provides the methods for manipulating that font.
The following example sets the caption's font using a Font object.
[Visual Basic]
Private Sub SetCaptionFont(ByRef myGrid As DataGrid, newFont As System.Drawing.Font) myGrid.CaptionFont = newFont End Sub
DataGrid Class | DataGrid Members | System.WinForms Namespace | CaptionBackColor | CaptionForeColor | ResetCaptionFont