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 paramètre spécifié DataGridViewCellStyle au fichier actif DataGridViewCellStyle.
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 à l’actif DataGridViewCellStyle.
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 paramètre actuel DataGridViewCellStyle. Si une propriété n’est pas définie, dataGridViewCellStylele courant DataGridViewCellStyle conserve sa valeur de cette propriété.