/// <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; }
/// <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; }