System.Windows.Forms.DataGridViewButtonCell.Clone()

Here are the examples of the csharp api class System.Windows.Forms.DataGridViewButtonCell.Clone() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

1. Example

View license
public override object Clone()
        {
            KryptonDataGridViewButtonCell dataGridViewCell = base.Clone() as KryptonDataGridViewButtonCell;
            if (dataGridViewCell != null)
            {
                dataGridViewCell._styleSet = _styleSet;
                dataGridViewCell._shortTextValue = _shortTextValue;
                dataGridViewCell._buttonStyle = _buttonStyle;
            }
            return dataGridViewCell;
        }

2. Example

Project: cs-script
Source File: VSintegration.cs
View license
public override object Clone()
        {
            DataGridViewDisableButtonCell cell = (DataGridViewDisableButtonCell)base.Clone();
            cell.Enabled = this.Enabled;
            return cell;
        }

3. Example

View license
public override object Clone()
        {
            DataGridViewInvisibleButtonCell cell =
                (DataGridViewInvisibleButtonCell)base.Clone();
            cell.IsVisible = this.IsVisible;
            return cell;
        }