添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
有腹肌的啄木鸟  ·  使用 JdbcTemplate ...·  2 周前    · 
爱跑步的钥匙  ·  MybatisPlus学习笔记 | ...·  2 周前    · 
咆哮的馒头  ·  Get Nth Entry from ...·  2 周前    · 
留胡子的汤圆  ·  SharePoint 搜索 REST ...·  1 周前    · 
没有腹肌的开水瓶  ·  Exception in thread ...·  1 周前    · 
挂过科的镜子  ·  VUE 使用 select ...·  4 周前    · 
害羞的鸡蛋面  ·  计算机或Xperia ...·  5 月前    · 
温文尔雅的竹笋  ·  input file ...·  5 月前    · 

Aspose.Cells provides a method Cell.getStringValue() which can be used to get the string value of the cell with or without any formatting. Suppose, you have a cell with value 0.012345 and you have formatted it to display two decimal places only. It will then display as 0.01 in Excel. You can retrieve string values both as 0.01 and as 0.012345 using the Cell.getStringValue() method. It takes CellValueFormatStrategy enum as a parameter which has the following values

  • CellValueFormatStrategy.CELL_STYLE
  • CellValueFormatStrategy.DISPLAY_STYLE
  • CellValueFormatStrategy.NONE
  • Get Cell String Value with and without Formatting

    The following sample code explains the use of Cell.getStringValue() method.

    Console Output

    Below is the console output of the above sample code.

     0.01
    0.012345