DataGrid.ParentRowsForeColor 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定父資料列的前景色彩。
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,代表父資料列的前景色彩。 預設值為 WindowText 色彩。
範例
下列程式碼範例會將 ParentRowsForeColor 屬性設定為新的色彩。
Private Sub SetParentRowsForeClr(ByVal myGrid As DataGrid)
myGrid.ParentRowsForeColor = System.Drawing.Color.Tomato
End Sub