DataGridTableStyle.SelectionForeColor 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 cellules sélectionnées.
public:
property System::Drawing::Color SelectionForeColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
public System.Drawing.Color SelectionForeColor { get; set; }
member this.SelectionForeColor : System.Drawing.Color with get, set
Public Property SelectionForeColor As Color
Valeur de propriété
Color représentant la couleur de premier plan des cellules sélectionnées.
Exemples
L’exemple de code suivant illustre l’utilisation de ce membre.
// Creates a common color dialog box.
ColorDialog^ myColorDialog = gcnew ColorDialog;
myColorDialog->AllowFullOpen = false;
// Allow the user to get help.
myColorDialog->ShowHelp = true;
// Set the initial color select to the current color.
myColorDialog->Color = customersStyle->SelectionForeColor;
// Show color dialog box.
myColorDialog->ShowDialog();
// Set selection fore color to selected color.
customersStyle->SelectionForeColor = myColorDialog->Color;
// Creates a common color dialog box.
ColorDialog myColorDialog = new ColorDialog();
myColorDialog.AllowFullOpen = false ;
// Allow the user to get help.
myColorDialog.ShowHelp = true ;
// Set the initial color select to the current color.
myColorDialog.Color = customersStyle.SelectionForeColor;
// Show color dialog box.
myColorDialog.ShowDialog();
// Set selection fore color to selected color.
customersStyle.SelectionForeColor = myColorDialog.Color;
' Creates a common color dialog box.
Dim myColorDialog As New ColorDialog()
myColorDialog.AllowFullOpen = False
' Allow the user to get help.
myColorDialog.ShowHelp = True
' Set the initial color select to the current color.
myColorDialog.Color = customersStyle.SelectionForeColor
' Show color dialog box.
myColorDialog.ShowDialog()
' Set selection fore color to selected color.
customersStyle.SelectionForeColor = myColorDialog.Color
S’applique à
Voir aussi
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.