Habanero.Faces.Win.NumericUpDownEditingControl.ApplyCellStyleToEditingControl C# (CSharp) Method

ApplyCellStyleToEditingControl() public method

Copy the styles from the object provided across to this editing control
public ApplyCellStyleToEditingControl ( System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle ) : void
dataGridViewCellStyle System.Windows.Forms.DataGridViewCellStyle The source to copy from
return void
        public void ApplyCellStyleToEditingControl(
            DataGridViewCellStyle dataGridViewCellStyle)
        {
            this.Font = dataGridViewCellStyle.Font;
            this.ForeColor = dataGridViewCellStyle.ForeColor;
            this.BackColor = dataGridViewCellStyle.BackColor;
        }