DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) Méthode

Définition

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é.

S’applique à

Voir aussi