Gets or sets the foreground color of the caption area.
[Visual Basic] Public Property CaptionForeColor As Color [C#] public Color CaptionForeColor {get; set;} [C++] public: __property Color get_CaptionForeColor(); public: __property void set_CaptionForeColor(Color); [JScript] public function get CaptionForeColor() : Color; public function set CaptionForeColor(Color);
A Color that represents the foreground color of the caption area. The default is the system color for text.
The following example sets the CaptionForeColor property of the DataGrid control.
[Visual Basic]
Private Sub SetCaptionForeClr(ByVal myGrid As DataGrid) myGrid.CaptionForeColor = New System.Drawing.Color.Tomato End Sub
DataGrid Class | DataGrid Members | System.WinForms Namespace | CaptionBackColor | CaptionFont