DataGrid.CaptionForeColor 属性

定义

获取或设置标题区域的前景色。

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,它代表标题区域的前景色。 默认值为 ActiveCaptionText

示例

下面的代码示例设置 CaptionForeColor 控件的 System.Windows.Forms.DataGrid 属性。


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

适用于

另请参阅