DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
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.