Exemplo n.º 1
0
 /**
  * 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));
 }
Exemplo n.º 2
0
 /**
  * Accessor for the contents as a string
  *
  * @return the value as a string
  */
 public virtual string getContents()
 {
     return(format.format(value));
 }
Exemplo n.º 3
0
 /**
  * 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);
 }