DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) Méthode
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.
Applique le DataGridViewCellStyle spécifié au DataGridViewCellStyle actuel.
public:
virtual void ApplyStyle(System::Windows::Forms::DataGridViewCellStyle ^ dataGridViewCellStyle);
public virtual void ApplyStyle (System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle);
abstract member ApplyStyle : System.Windows.Forms.DataGridViewCellStyle -> unit
override this.ApplyStyle : System.Windows.Forms.DataGridViewCellStyle -> unit
Public Overridable Sub ApplyStyle (dataGridViewCellStyle As DataGridViewCellStyle)
Paramètres
- dataGridViewCellStyle
- DataGridViewCellStyle
DataGridViewCellStyle à appliquer au DataGridViewCellStyle actuel.
Exceptions
dataGridViewCellStyle
a la valeur null
.
Remarques
La ApplyStyle méthode applique les valeurs des propriétés définies dans le dataGridViewCellStyle
paramètre au actuel DataGridViewCellStyle. Si une propriété n’est pas définie dans dataGridViewCellStyle
, le actuel DataGridViewCellStyle conserve sa valeur de cette propriété.
S’applique à
Voir aussi
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de l’année 2024, nous abandonnerons progressivement le mécanisme de retour d’information GitHub Issues pour le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultez :Soumettre et afficher des commentaires pour