DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) Methode

Definitie

Hiermee wordt de opgegeven DataGridViewCellStyle waarde toegepast op de huidige 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)

Parameters

dataGridViewCellStyle
DataGridViewCellStyle

De DataGridViewCellStyle te toepassen op de huidige DataGridViewCellStyle.

Uitzonderingen

dataGridViewCellStyle is null.

Opmerkingen

De ApplyStyle methode past de waarden toe van de eigenschappen die in de dataGridViewCellStyle parameter zijn ingesteld op de huidige DataGridViewCellStyle. Als een eigenschap niet is ingesteld dataGridViewCellStyle, behoudt de huidige DataGridViewCellStyle de waarde van die eigenschap.

Van toepassing op

Zie ook