DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) Método

Definição

Aplica o especificado DataGridViewCellStyle ao atual 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)

Parâmetros

dataGridViewCellStyle
DataGridViewCellStyle

O DataGridViewCellStyle a ser aplicado ao atual DataGridViewCellStyle.

Exceções

dataGridViewCellStyle é null.

Comentários

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

Aplica-se a

Confira também