DataGridTableStyle.SelectionForeColor Propiedad
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Obtiene o establece el color de primer plano de las celdas seleccionadas.
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
Valor de propiedad
Color que representa el color de primer plano de las celdas seleccionadas.
Ejemplos
En el ejemplo de código siguiente se muestra el uso de este miembro.
// 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
Se aplica a
Consulte también
Colaborar con nosotros en GitHub
El origen de este contenido se puede encontrar en GitHub, donde también puede crear y revisar problemas y solicitudes de incorporación de cambios. Para más información, consulte nuestra guía para colaboradores.