DataGrid.CaptionForeColor 属性

定义

获取或设置标题区域的前景色。Gets or sets the foreground color of the caption area.

public:
 property System::Drawing::Color CaptionForeColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
public System.Drawing.Color CaptionForeColor { get; set; }
member this.CaptionForeColor : System.Drawing.Color with get, set
Public Property CaptionForeColor As Color

属性值

Color

一个 Color,它代表标题区域的前景色。A Color that represents the foreground color of the caption area. 默认值为 ActiveCaptionTextThe default is ActiveCaptionText.

示例

下面的代码示例设置 CaptionForeColor 控件的属性 System.Windows.Forms.DataGridThe following code example sets the CaptionForeColor property of the System.Windows.Forms.DataGrid control.


Private Sub SetCaptionForeClr(ByVal myGrid As DataGrid)
   myGrid.CaptionForeColor = System.Drawing.Color.Tomato
End Sub
   

适用于

另请参阅