DataGrid.ParentRowsForeColor Propriété

Définition

Obtient ou définit la couleur de premier plan des lignes parentes.

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

Valeur de propriété

Color

Color représentant la couleur de premier plan des lignes parentes. La valeur par défaut est la couleur WindowText.

Exemples

L’exemple de code suivant définit la ParentRowsForeColor propriété sur une nouvelle couleur.


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

S’applique à