Class GridTxtLoadOptions

GridTxtLoadOptions class

Represents the options for loading text file.

[Obsolete("This class will be obsoleted after stand alone dll usage of cells public api,instead you can use Aspose.Cells.TxtLoadOptions ")]
public class GridTxtLoadOptions : GridLoadOptions

Constructors

NameDescription
GridTxtLoadOptions()Creates the options for loading text file.

Properties

NameDescription
AutoFilter { get; set; }Indicates whether auto filtering the data when loading the files.(Inherited from GridLoadOptions.)
CheckDataValid { get; set; }Check whether data is valid in the template file.(Inherited from GridLoadOptions.)
CheckExcelRestriction { get; set; }Whether 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 later you 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.(Inherited from GridLoadOptions.)
ConvertDateTimeData { get; set; }Gets or sets a value that indicates whether the string in text file is converted to date data.
ConvertNumericData { get; set; }Gets or sets a value that indicates whether the string in text file is converted to numeric data.
Encoding { get; set; }Gets and sets the default encoding. Only applies for csv file.
ExtendToNextSheet { get; set; }Whether extends data to next sheet when the rows or columns of data exceed limit. If this property is true, extra data will be extended to next sheet behind current one(if current sheet is the last one, new sheet will be appended to current workbook). If this property is false, the data exceeds limit will be ignored. Default is false;
HasFormula { get; set; }Indicates whether the text is formula if it starts with “=”.
HasTextQualifier { get; set; }Whether there is text qualifier for cell value. Default is true.
IgnoreNotPrinted { get; set; }Ignore the data which are not printed if directly printing the file(Inherited from GridLoadOptions.)
IsMultiEncoded { get; set; }True means that the file contains several encoding.
KeepPrecision { get; set; }Indicates whether not parsing a string value if the length is 15.
KeepUnparsedData { get; set; }Whether keep the unparsed data in memory for the Workbook when it is loaded from template file. Default is true.(Inherited from GridLoadOptions.)
OnlyAuto { get; set; }Indicates whether only fit the rows which height are not customed.(Inherited from GridLoadOptions.)
ParsingFormulaOnOpen { get; set; }Indicates whether parsing the formula when reading the file.(Inherited from GridLoadOptions.)
ParsingPivotCachedRecords { get; set; }Indicates whether parsing pivot cached records when loading the file. The default value is false.(Inherited from GridLoadOptions.)
Password { get; set; }Gets and set the password of the workbook.(Inherited from GridLoadOptions.)
PreservePaddingSpacesInFormula { get; set; }Indicates whether preserve those spaces and line breaks that are padded between formula tokens while getting and setting formulas. Default value is false.(Inherited from GridLoadOptions.)
Separator { get; set; }Gets and sets character separator of text file.
SeparatorString { get; set; }Gets and sets a string value as separator.
TextQualifier { get; set; }Specifies the text qualifier for cell values. Default qualifier is ‘"’.
TreatConsecutiveDelimitersAsOne { get; set; }Whether consecutive delimiters should be treated as one.
TreatQuotePrefixAsValue { get; set; }Indicates 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 value and QuotePrefix will be set as true for the cell.

See Also