DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) Metoda

Definicja

Stosuje określony DataGridViewCellStyle element do bieżącego DataGridViewCellStyleelementu .

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

Element DataGridViewCellStyle do zastosowania do bieżącego DataGridViewCellStyle.

Wyjątki

dataGridViewCellStyle to null.

Uwagi

Metoda ApplyStyle stosuje wartości właściwości ustawionych w parametrze do bieżącego DataGridViewCellStyleparametru dataGridViewCellStyle . Jeśli właściwość nie jest ustawiona w dataGridViewCellStyleelemencie , bieżący DataGridViewCellStyle zachowuje jego wartość tej właściwości.

Dotyczy

Zobacz też