예제 #1
0
파일: Cell.cs 프로젝트: AqueGen/AS.Excel
        /// <summary>
        /// Initializes a new instance of the <see cref="Cell"/> class.
        /// </summary>
        /// <param name="column">The column.</param>
        /// <param name="row">The row.</param>
        /// <param name="properties">The properties.</param>
        /// <exception cref="System.ArgumentNullException"></exception>
        public Cell(int column, int row, ICellProperties properties)
        {
            if (properties == null) throw new ArgumentNullException(nameof(properties));

            ColumnIndex = column;
            RowIndex = row;
            Type = properties.Type;
            Value = properties.Value;
            IsCalculated = properties.IsCalculated;
        }
예제 #2
0
파일: Cell.cs 프로젝트: AqueGen/AS.Excel
        /// <summary>
        /// Initializes a new instance of the <see cref="Cell"/> class.
        /// </summary>
        /// <param name="column">The column.</param>
        /// <param name="row">The row.</param>
        /// <param name="properties">The properties.</param>
        /// <exception cref="System.ArgumentNullException"></exception>
        public Cell(int column, int row, ICellProperties properties)
        {
            if (properties == null)
            {
                throw new ArgumentNullException(nameof(properties));
            }

            ColumnIndex  = column;
            RowIndex     = row;
            Type         = properties.Type;
            Value        = properties.Value;
            IsCalculated = properties.IsCalculated;
        }