DataGridViewCellStyle.ApplyStyle(DataGridViewCellStyle) Método

Definición

Aplica el objeto especificado DataGridViewCellStyle al objeto actual 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

que DataGridViewCellStyle se va a aplicar al objeto actual DataGridViewCellStyle.

Excepciones

dataGridViewCellStyle es null.

Comentarios

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

Se aplica a

Consulte también