Gets or sets the background color of the caption area.
[Visual Basic] Public Property CaptionBackColor As Color [C#] public Color CaptionBackColor {get; set;} [C++] public: __property Color get_CaptionBackColor(); public: __property void set_CaptionBackColor(Color); [JScript] public function get CaptionBackColor() : Color; public function set CaptionBackColor(Color);
A Color that represents the caption's background color. The default is the system color for windows (SystemColors.Window).
The following example sets the CaptionBackColor property of the DataGrid control.
[Visual Basic]
Private Sub SetCaptionBackClr(ByVal myGrid As DataGrid) Set myGrid.CaptionBackColor = System.Drawing.Color.Blue End Sub
DataGrid Class | DataGrid Members | System.WinForms Namespace | CaptionForeColor | CaptionFont