/// <summary>
 /// Constructs a cell with a string as its content.
 /// </summary>
 public Cell(string cellName, string content)
 {
     _cellName = cellName;
     _textContents = new TextContents(content, true); //contains a string
     _doubleContents = new DoubleContents(0, false);
     _formulaContents = new FormulaContents(null, null, false);
 }
 /// <summary>
 /// Constructs a cell with a double as its content.
 /// </summary>
 public Cell(string cellName, double content)
 {
     _cellName = cellName;
     _textContents = new TextContents(String.Empty, false);
     _doubleContents = new DoubleContents(content, true); //contains a double
     _formulaContents = new FormulaContents(null, null, false);
 }
        private readonly TextContents _textContents; //Keeps track of the contents as a string

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Constructs an empty cell.
        /// </summary>
        public Cell(string cellName)
        {
            _cellName = cellName;
            _textContents = new TextContents(String.Empty, true); //contains an empty string
            _doubleContents = new DoubleContents(0, false);
            _formulaContents = new FormulaContents(null, null, false);
        }
 /// <summary>
 /// Constructs a cell with a Formula as its content.
 /// </summary>
 public Cell(string cellName, Formula content, object value)
 {
     _cellName = cellName;
     _textContents = new TextContents(String.Empty, false);
     _doubleContents = new DoubleContents(0, false);
     _formulaContents = new FormulaContents(content, value, true); //contains a formula
 }