TxtLoadOptions Class

TxtLoadOptions class

Represents the options for loading text file.


type TxtLoadOptions struct  {
	ptr unsafe.Pointer
}

Constructors

MethodDescription
NewTxtLoadOptionsCreates the options for loading text file.
NewTxtLoadOptions_LoadFormatCreates the options for loading text file.
NewTxtLoadOptions_AbstractTextLoadOptionsConstructs from a parent object.

Methods

MethodDescription
IsNullChecks whether the implementation object is nullptr.
GetSeparatorGets and sets character separator of text file.
SetSeparatorGets and sets character separator of text file.
GetSeparatorStringGets and sets a string value as separator.
SetSeparatorStringGets and sets a string value as separator.
IsMultiEncodedTrue means that the file contains several encoding.
SetIsMultiEncodedTrue means that the file contains several encoding.
GetHasFormulaIndicates whether the text is formula if it starts with “=”.
SetHasFormulaIndicates whether the text is formula if it starts with “=”.
GetHasTextQualifierWhether there is text qualifier for cell value. Default is true.
SetHasTextQualifierWhether there is text qualifier for cell value. Default is true.
GetTextQualifierSpecifies the text qualifier for cell values. Default qualifier is ‘"’.
SetTextQualifierSpecifies the text qualifier for cell values. Default qualifier is ‘"’.
GetTreatConsecutiveDelimitersAsOneWhether consecutive delimiters should be treated as one.
SetTreatConsecutiveDelimitersAsOneWhether consecutive delimiters should be treated as one.
GetTreatQuotePrefixAsValueIndicates whether the leading single quote sign should be taken as part of the value of one cell.Default is true. If it is false, the leading single quote will be removed from corresponding cell’s valueand Style.QuotePrefix will be set as true for the cell.
SetTreatQuotePrefixAsValueIndicates whether the leading single quote sign should be taken as part of the value of one cell.Default is true. If it is false, the leading single quote will be removed from corresponding cell’s valueand Style.QuotePrefix will be set as true for the cell.
GetExtendToNextSheetWhether extends data to next sheet when the rows or columns of data exceed limit.Default is false.
SetExtendToNextSheetWhether extends data to next sheet when the rows or columns of data exceed limit.Default is false.
GetHeaderRowsCountThe count of header rows to be repeated for extended sheets.
SetHeaderRowsCountThe count of header rows to be repeated for extended sheets.
GetHeaderColumnsCountThe count of header columns to be repeated for extended sheets.
SetHeaderColumnsCountThe count of header columns to be repeated for extended sheets.
GetMaxRowCountThe maximum count of rows to be imported for one sheet.
SetMaxRowCountThe maximum count of rows to be imported for one sheet.
GetMaxColumnCountThe maximum count of columns to be imported for one sheet.
SetMaxColumnCountThe maximum count of columns to be imported for one sheet.
GetEncodingGets and sets the default encoding. Only applies for csv file.
SetEncodingGets and sets the default encoding. Only applies for csv file.
GetLoadStyleStrategyIndicates the strategy to apply style for parsed values when converting string value to number or datetime.
SetLoadStyleStrategyIndicates the strategy to apply style for parsed values when converting string value to number or datetime.
GetConvertNumericDataGets or sets a value that indicates whether the string in text file is converted to numeric data.
SetConvertNumericDataGets or sets a value that indicates whether the string in text file is converted to numeric data.
GetConvertDateTimeDataGets or sets a value that indicates whether the string in text file is converted to date data.
SetConvertDateTimeDataGets or sets a value that indicates whether the string in text file is converted to date data.
GetKeepPrecisionIndicates whether not parsing a string value if the length is 15.
SetKeepPrecisionIndicates whether not parsing a string value if the length is 15.
GetLoadFormatGets the load format.
GetPasswordGets and set the password of the workbook.
SetPasswordGets and set the password of the workbook.
GetParsingFormulaOnOpenIndicates whether parsing the formula when reading the file.
SetParsingFormulaOnOpenIndicates whether parsing the formula when reading the file.
GetParsingPivotCachedRecordsIndicates whether parsing pivot cached records when loading the file.The default value is false.
SetParsingPivotCachedRecordsIndicates whether parsing pivot cached records when loading the file.The default value is false.
SetPaperSizeSets the default print paper size from default printer’s setting.
GetLanguageCodeGets or sets the user interface language of the Workbook version based on CountryCode that has saved the file.
SetLanguageCodeGets or sets the user interface language of the Workbook version based on CountryCode that has saved the file.
GetRegionGets or sets the system regional settings based on CountryCode at the time the file was loaded.
SetRegionGets or sets the system regional settings based on CountryCode at the time the file was loaded.
GetDefaultStyleSettingsGets the default style settings for initializing styles of the workbook
GetInterruptMonitorGets and sets the interrupt monitor.
SetInterruptMonitorGets and sets the interrupt monitor.
GetIgnoreNotPrintedIgnore the data which are not printed if directly printing the file
SetIgnoreNotPrintedIgnore the data which are not printed if directly printing the file
GetCheckDataValidCheck whether data is valid in the template file.
SetCheckDataValidCheck whether data is valid in the template file.
GetCheckExcelRestrictionWhether check restriction of excel file when user modify cells related objects.For example, excel does not allow inputting string value longer than 32K.When you input a value longer than 32K such as by Cell.PutValue(string), if this property is true, you will get an Exception.If this property is false, we will accept your input string value as the cell’s value so that lateryou can output the complete string value for other file formats such as CSV.However, if you have set such kind of value that is invalid for excel file format,you should not save the workbook as excel file format later. Otherwise there may be unexpected error for the generated excel file.
SetCheckExcelRestrictionWhether check restriction of excel file when user modify cells related objects.For example, excel does not allow inputting string value longer than 32K.When you input a value longer than 32K such as by Cell.PutValue(string), if this property is true, you will get an Exception.If this property is false, we will accept your input string value as the cell’s value so that lateryou can output the complete string value for other file formats such as CSV.However, if you have set such kind of value that is invalid for excel file format,you should not save the workbook as excel file format later. Otherwise there may be unexpected error for the generated excel file.
GetKeepUnparsedDataWhether keep the unparsed data in memory for the Workbook when it is loaded from template file. Default is true.
SetKeepUnparsedDataWhether keep the unparsed data in memory for the Workbook when it is loaded from template file. Default is true.
GetLoadFilterThe filter to denote how to load data.
SetLoadFilterThe filter to denote how to load data.
GetMemorySettingGets or sets the memory usage options.
SetMemorySettingGets or sets the memory usage options.
GetAutoFitterOptionsGets and sets the auto fitter options
SetAutoFitterOptionsGets and sets the auto fitter options
GetAutoFilterIndicates whether auto filtering the data when loading the files.
SetAutoFilterIndicates whether auto filtering the data when loading the files.
GetFontConfigsGets and sets individual font configs.Only works for the Workbook which uses this LoadOptions to load.
SetFontConfigsGets and sets individual font configs.Only works for the Workbook which uses this LoadOptions to load.
GetIgnoreUselessShapesIndicates whether ignoring useless shapes.
SetIgnoreUselessShapesIndicates whether ignoring useless shapes.
GetPreservePaddingSpacesInFormulaIndicates whether preserve those spaces and line breaks that are padded between formula tokenswhile getting and setting formulas.Default value is false.
SetPreservePaddingSpacesInFormulaIndicates whether preserve those spaces and line breaks that are padded between formula tokenswhile getting and setting formulas.Default value is false.