com.aspose.cells

Class TxtLoadStyleStrategy

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

Utility class containing constants. Specifies how to apply style for parsed values when converting string value to number or datetime.

Field Summary
static final intNONE
Does not set style for the parsed value.
static final intBUILT_IN
Set the style as built-in number/datetime when the parsed value are plain numeric/datetime values.
static final intEXACT_FORMAT
Set the exact custom format for the parsed value to make the formatted value be same with the original input one.
 

    • Field Detail

      • NONE

        public static final int NONE
        Does not set style for the parsed value.
      • BUILT_IN

        public static final int BUILT_IN
        Set the style as built-in number/datetime when the parsed value are plain numeric/datetime values. When ms excel parsing datetime or numeric values according to user's input(such as CSV file), the formatting of those values may be changed, such as leading/tailing zeros of number, year/month/day order of datetime, ...etc. This type is for simulating ms excel's behavior.
      • EXACT_FORMAT

        public static final int EXACT_FORMAT
        Set the exact custom format for the parsed value to make the formatted value be same with the original input one.