コード例 #1
0
		private MyDataGridViewTextBoxCell method_0()
		{
			MyDataGridViewTextBoxCell myDataGridViewTextBoxCell = this.CellTemplate as MyDataGridViewTextBoxCell;
			if (myDataGridViewTextBoxCell == null)
			{
				throw new InvalidOperationException("Invalid CellTemplate.");
			}
			return myDataGridViewTextBoxCell;
		}
コード例 #2
0
        public override object Clone()
        {
            MyDataGridViewTextBoxCell myDataGridViewTextBoxCell = base.Clone() as MyDataGridViewTextBoxCell;

            if (myDataGridViewTextBoxCell != null)
            {
                myDataGridViewTextBoxCell.MaxByteLength = this.MaxByteLength;
            }
            return(myDataGridViewTextBoxCell);
        }