DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) Método

Definição

Aplica o especificado DataGridViewCellStyle à corrente 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 para aplicar ao atual DataGridViewCellStyle.

Exceções

dataGridViewCellStyle é null.

Observações

O ApplyStyle método aplica os valores das propriedades definidas no dataGridViewCellStyle parâmetro à corrente DataGridViewCellStyle. Se uma propriedade não estiver definida em dataGridViewCellStyle, a corrente DataGridViewCellStyle mantém o valor dessa propriedade.

Aplica-se a

Ver também