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.CaptionForeColor

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

Property Value

A Color that represents the foreground color of the caption area. The default is the system color for text.

Example [Visual Basic]

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

See Also

DataGrid Class | DataGrid Members | System.WinForms Namespace | CaptionBackColor | CaptionFont