DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) Метод

Определение

Применяет заданный объект DataGridViewCellStyle к текущему объекту 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)

Параметры

dataGridViewCellStyle
DataGridViewCellStyle

Объект DataGridViewCellStyle, применяемый к текущему объекту DataGridViewCellStyle.

Исключения

dataGridViewCellStyle имеет значение null.

Комментарии

Метод ApplyStyle применяет значения свойств, заданных в параметре dataGridViewCellStyle , к текущему DataGridViewCellStyle. Если свойство не задано в dataGridViewCellStyle, текущий DataGridViewCellStyle объект сохраняет значение этого свойства.

Применяется к

См. также раздел