Share via


DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) Yöntem

Tanım

Belirtilen DataGridViewCellStyle öğesini geçerli DataGridViewCellStyleöğesine uygular.

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)

Parametreler

dataGridViewCellStyle
DataGridViewCellStyle

DataGridViewCellStyle geçerli DataGridViewCellStyleöğesine uygulanacak .

Özel durumlar

dataGridViewCellStyle, null değeridir.

Açıklamalar

yöntemi, ApplyStyle parametresinde dataGridViewCellStyle ayarlanan özelliklerin değerlerini geçerli DataGridViewCellStyleöğesine uygular. Bir özellik içinde dataGridViewCellStyleayarlanmadıysa, geçerli DataGridViewCellStyle bu özelliğin değerini korur.

Şunlara uygulanır

Ayrıca bkz.