Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Ruft die Vordergrundfarbe für ausgewählte Zellen ab oder legt diese fest.
Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)
Syntax
'Declaration
Public Property SelectionForeColor As Color
'Usage
Dim instance As DataGridTableStyle
Dim value As Color
value = instance.SelectionForeColor
instance.SelectionForeColor = value
public Color SelectionForeColor { get; set; }
public:
property Color SelectionForeColor {
Color get ();
void set (Color value);
}
/** @property */
public Color get_SelectionForeColor ()
/** @property */
public void set_SelectionForeColor (Color value)
public function get SelectionForeColor () : Color
public function set SelectionForeColor (value : Color)
Eigenschaftenwert
Eine Color, die die Vordergrundfarbe für ausgewählte Zellen darstellt.
Beispiel
' 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
// 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.
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.set_AllowFullOpen(false);
// Allow the user to get help.
myColorDialog.set_ShowHelp(true);
// Set the initial color select to the current color.
myColorDialog.set_Color(customersStyle.get_SelectionForeColor());
// Show color dialog box.
myColorDialog.ShowDialog();
// Set selection fore color to selected color.
customersStyle.set_SelectionForeColor(myColorDialog.get_Color());
// Creates a common color dialog box.
ColorDialog myColorDialog = new ColorDialog();
myColorDialog.set_AllowFullOpen(false);
// Allow the user to get help.
myColorDialog.set_ShowHelp(true);
// Set the initial color select to the current color.
myColorDialog.set_Color(customersStyle.get_SelectionForeColor());
// Show color dialog box.
myColorDialog.ShowDialog();
// Set selection fore color to selected color.
customersStyle.set_SelectionForeColor(myColorDialog.get_Color());
Plattformen
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
Siehe auch
Referenz
DataGridTableStyle-Klasse
DataGridTableStyle-Member
System.Windows.Forms-Namespace
ResetSelectionForeColor
DataGridTableStyle.SelectionBackColor-Eigenschaft
SelectionForeColorChanged
ShouldSerializeSelectionForeColor