NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGrid.CaptionFont

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

Property Value

A Font that represents the caption's font.

Remarks

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

Example [Visual Basic]

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

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace | CaptionBackColor | CaptionForeColor | ResetCaptionFont