private MyDataGridViewTextBoxCell method_0() { MyDataGridViewTextBoxCell myDataGridViewTextBoxCell = this.CellTemplate as MyDataGridViewTextBoxCell; if (myDataGridViewTextBoxCell == null) { throw new InvalidOperationException("Invalid CellTemplate."); } return myDataGridViewTextBoxCell; }
public override object Clone() { MyDataGridViewTextBoxCell myDataGridViewTextBoxCell = base.Clone() as MyDataGridViewTextBoxCell; if (myDataGridViewTextBoxCell != null) { myDataGridViewTextBoxCell.MaxByteLength = this.MaxByteLength; } return(myDataGridViewTextBoxCell); }