DataGridTableStyle.SelectionBackColor 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 Hintergrundfarbe für ausgewählte Zellen ab oder legt diese fest.
public:
property System::Drawing::Color SelectionBackColor { System::Drawing::Color get(); void set(System::Drawing::Color value); };
public System.Drawing.Color SelectionBackColor { get; set; }
member this.SelectionBackColor : System.Drawing.Color with get, set
Public Property SelectionBackColor As Color
Eigenschaftswert
Eine Color, die die Hintergrundfarbe für ausgewählte Zellen darstellt.
Beispiele
Im folgenden Codebeispiel wird die Verwendung dieses Members veranschaulicht.
// Allow the user to select a Color.
ColorDialog^ myColorDialog = gcnew ColorDialog;
myColorDialog->AllowFullOpen = false;
myColorDialog->ShowHelp = true;
// Set the initial color select to the current color.
myColorDialog->Color = myGridTableStyle->SelectionBackColor;
// Show color dialog box.
myColorDialog->ShowDialog();
// Set the backcolor for the selected cells.
myGridTableStyle->SelectionBackColor = myColorDialog->Color;
// Allow the user to select a Color.
ColorDialog myColorDialog = new ColorDialog();
myColorDialog.AllowFullOpen = false ;
myColorDialog.ShowHelp = true ;
// Set the initial color select to the current color.
myColorDialog.Color = myGridTableStyle.SelectionBackColor;
// Show color dialog box.
myColorDialog.ShowDialog();
// Set the backcolor for the selected cells.
myGridTableStyle.SelectionBackColor = myColorDialog.Color;
' Allow the user to select a Color.
Dim myColorDialog As New ColorDialog()
myColorDialog.AllowFullOpen = False
myColorDialog.ShowHelp = True
' Set the initial color select to the current color.
myColorDialog.Color = myGridTableStyle.SelectionBackColor
' Show color dialog box.
myColorDialog.ShowDialog()
' Set the backcolor for the selected cells.
myGridTableStyle.SelectionBackColor = 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.