DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) Metoda

Definice

Použije zadanou DataGridViewCellStyle hodnotu na aktuální 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)

Parametry

dataGridViewCellStyle
DataGridViewCellStyle

Použije DataGridViewCellStyle se pro aktuální DataGridViewCellStyle.

Výjimky

dataGridViewCellStyle je null.

Poznámky

Metoda ApplyStyle použije hodnoty vlastností, které jsou nastaveny v parametru dataGridViewCellStyle na aktuální DataGridViewCellStyle. Pokud vlastnost není nastavena v dataGridViewCellStyle, aktuální DataGridViewCellStyle zachová svou hodnotu této vlastnosti.

Platí pro

Viz také