DataGridTableStyle.SelectionForeColor Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft die Vordergrundfarbe für ausgewählte Zellen ab oder legt diese fest.
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
Eigenschaftswert
Eine Color, die die Vordergrundfarbe für ausgewählte Zellen darstellt.
Beispiele
Im folgenden Codebeispiel wird die Verwendung dieses Members veranschaulicht.
// 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
Gilt für:
Weitere Informationen
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.