DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) Método

Definición

Aplica el valor de DataGridViewCellStyle especificado al objeto DataGridViewCellStyle actual.

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

DataGridViewCellStyle que se va a agregar al estilo DataGridViewCellStyle actual.

Excepciones

dataGridViewCellStyle es null.

Comentarios

El ApplyStyle método aplica los valores de las propiedades establecidas en el dataGridViewCellStyle parámetro al actual DataGridViewCellStyle. Si una propiedad no se establece en dataGridViewCellStyle, el actual DataGridViewCellStyle conserva su valor de esa propiedad.

Se aplica a

Consulte también