Пример #1
0
        /// <summary>
        /// Creates a copy of a DGV-MaskedTextColumn containing the DGV-Column properties.
        /// </summary>
        /// <returns>Instance of a DGV-MaskedTextColumn using the Mask string.</returns>
        public override object Clone()
        {
            DataGridViewMaskedTextColumn col = (DataGridViewMaskedTextColumn)base.Clone();

            col.Mask         = Mask;
            col.CellTemplate = (DataGridViewMaskedTextCell)this.CellTemplate.Clone();
            return(col);
        }
Пример #2
0
        public override object Clone()
        {
            DataGridViewMaskedTextColumn dataGridViewMaskedTextColumn = (DataGridViewMaskedTextColumn)base.Clone();

            dataGridViewMaskedTextColumn.Mask         = this.Mask;
            dataGridViewMaskedTextColumn.CellTemplate = (DataGridViewMaskedTextCell)this.CellTemplate.Clone();
            return(dataGridViewMaskedTextColumn);
        }