DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) Método

Definição

Aplica o DataGridViewCellStyle especificado ao DataGridViewCellStyle atual.

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)

Parâmetros

dataGridViewCellStyle
DataGridViewCellStyle

O DataGridViewCellStyle a ser aplicado ao DataGridViewCellStyle atual.

Exceções

dataGridViewCellStyle é null.

Comentários

O ApplyStyle método aplica os valores das propriedades definidas no dataGridViewCellStyle parâmetro para o atual DataGridViewCellStyle. Se uma propriedade não estiver definida em dataGridViewCellStyle, o atual DataGridViewCellStyle manterá seu valor dessa propriedade.

Aplica-se a

Confira também