/// <summary> /// Add a string to the cell. /// </summary> /// <param name="cell">Current cell.</param> /// <param name="value">Reference to <see cref="T:iTin.Export.ComponentModel.FieldValueInformation"/> that contains the information to add.</param> /// <returns> /// A <see cref="T:Novacode.Cell" /> with text. /// </returns> public static Cell AppendText(this Cell cell, FieldValueInformation value) { SentinelHelper.ArgumentNull(cell); var style = value.Style; var formattedValue = value.FormattedValue; var isNumeric = value.IsNumeric; if (isNumeric) { var isNegative = value.IsNegative; if (isNegative) { cell.AppendText(formattedValue).AppendNegativeVisualStyle(style); } else { cell.AppendText(formattedValue).AppendVisualStyle(style); } } else { cell.AppendText(formattedValue).AppendVisualStyle(style); } return(cell); }