DataGrid.ParentRowsForeColor DataGrid.ParentRowsForeColor DataGrid.ParentRowsForeColor DataGrid.ParentRowsForeColor Property

定义

获取或设置父行的前景色。Gets or sets the foreground color of parent rows.

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

属性值

一个 Color,它代表父行的前景色。A Color that represents the foreground color of parent rows. 默认是 WindowText 颜色。The default is the WindowText color.

示例

下面的代码示例将ParentRowsForeColor属性设置为新的颜色。The following code example sets the ParentRowsForeColor property to a new color.


Private Sub SetParentRowsForeClr(ByVal myGrid As DataGrid)
   myGrid.ParentRowsForeColor = System.Drawing.Color.Tomato
End Sub
      

适用于