public void TestApplyStyle() { DataGridViewCellStyle style_aux = new DataGridViewCellStyle(); style.ApplyStyle(style_aux); Assert.AreEqual(style_aux, style, "#B1"); }
/// <summary>Applies the specified <see cref="IDataGridViewCellStyle"></see> to the current /// <see cref="IDataGridViewCellStyle"></see>.</summary> /// <param name="dataGridViewCellStyle">The <see cref="IDataGridViewCellStyle"></see> to apply /// to the current <see cref="IDataGridViewCellStyle"></see>.</param> /// <exception cref="T:System.ArgumentNullException">dataGridViewCellStyle is null.</exception> /// <filterpriority>1</filterpriority> public void ApplyStyle(IDataGridViewCellStyle dataGridViewCellStyle) { _dataGridViewCellStyle.ApplyStyle(((DataGridViewCellStyleVWG)dataGridViewCellStyle).DataGridViewCellStyle); }