DataGrid.ParentRowsForeColor Właściwość

Definicja

Pobiera lub ustawia kolor pierwszego planu wierszy nadrzędnych.

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

Wartość właściwości

Color

Element Color reprezentujący kolor pierwszego planu wierszy nadrzędnych. Wartość domyślna WindowText to kolor.

Przykłady

Poniższy przykład kodu ustawia ParentRowsForeColor właściwość na nowy kolor.


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

Dotyczy