DataGrid.ParentRowsForeColor Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 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