/** * Quick and dirty function to return the contents of this cell as a string. * For more complex manipulation of the contents, it is necessary to cast * this interface to correct subinterface * * @return the contents of this cell as a string */ public override string getContents() { if (format == null) { format = ((XFRecord)getCellFormat()).getNumberFormat(); if (format == null) { format = defaultFormat; } } return(format.format(value)); }
/** * Accessor for the contents as a string * * @return the value as a string */ public virtual string getContents() { return(format.format(value)); }
/** * Returns the numerical value as a string * * @return The numerical value of the formula as a string */ public override string getContents() { return(!System.Double.IsNaN(value) ? format.format(value) : string.Empty); }