com.aspose.cells

Class CellValueFormatStrategy

  • java.lang.Object
    • com.aspose.cells.CellValueFormatStrategy
public class CellValueFormatStrategy 
extends java.lang.Object

Utility class containing constants. Specifies how to apply style for the value of the cell.

Field Summary
static final intNONE
Not formatted.
static final intCELL_STYLE
Only formatted with the cell's original style.
static final intDISPLAY_STYLE
Formatted with the cell's displayed style.
static final intDISPLAY_STRING
Gets the displayed string shown in ms excel. The main difference from DISPLAY_STYLE is this option also considers the effect of column width. If the column width is too small to show the formatted string completely, "#" may be shown, just like what ms excel does.
 

    • Field Detail

      • NONE

        public static final int NONE
        Not formatted.
      • CELL_STYLE

        public static final int CELL_STYLE
        Only formatted with the cell's original style.
      • DISPLAY_STYLE

        public static final int DISPLAY_STYLE
        Formatted with the cell's displayed style.
      • DISPLAY_STRING

        public static final int DISPLAY_STRING
        Gets the displayed string shown in ms excel. The main difference from DISPLAY_STYLE is this option also considers the effect of column width. If the column width is too small to show the formatted string completely, "#" may be shown, just like what ms excel does.