public class TxtSaveOptions extends SaveOptions
| Constructor and Description |
|---|
TxtSaveOptions()
Creates text file save options.
|
TxtSaveOptions(int saveFormat)
Creates text file save options.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAlwaysQuoted()
Deprecated.
Use QuoteType property instead.
|
Encoding |
getEncoding()
Gets the default encoding.
|
boolean |
getExportAllSheets()
Indicates whether exporting all sheets to the text file.
|
CellArea |
getExportArea()
The range of cells to be exported.
|
boolean |
getExportQuotePrefix()
Indicates whether the single quote sign should be exported as part of the value of one cell
when
Style.getQuotePrefix() is true for it. |
int |
getFormatStrategy()
Gets the format strategy when exporting the cell value as string.
|
boolean |
getKeepSeparatorsForBlankRow()
Indicates whether separators should be output for blank row.
|
LightCellsDataProvider |
getLightCellsDataProvider()
The data provider for saving workbook in light mode.
|
int |
getQuoteType()
Gets how to quote values in the exported text file.
|
char |
getSeparator()
Gets char Delimiter of text file.
|
java.lang.String |
getSeparatorString()
Gets a string value as separator.
|
boolean |
getTrimLeadingBlankRowAndColumn()
Indicates whether leading blank rows and columns should be trimmed like what ms excel does.
|
boolean |
getTrimTailingBlankCells()
Indicates whether tailing blank cells in one row should be trimmed.
|
void |
setAlwaysQuoted(boolean value)
Deprecated.
Use QuoteType property instead.
|
void |
setEncoding(Encoding value)
Sets the default encoding.
|
void |
setExportAllSheets(boolean value)
Indicates whether exporting all sheets to the text file.
|
void |
setExportArea(CellArea value)
The range of cells to be exported.
|
void |
setExportQuotePrefix(boolean value)
Indicates whether the single quote sign should be exported as part of the value of one cell
when
Style.getQuotePrefix() is true for it. |
void |
setFormatStrategy(int value)
Sets the format strategy when exporting the cell value as string.
|
void |
setKeepSeparatorsForBlankRow(boolean value)
Indicates whether separators should be output for blank row.
|
void |
setLightCellsDataProvider(LightCellsDataProvider value)
The data provider for saving workbook in light mode.
|
void |
setQuoteType(int value)
Sets how to quote values in the exported text file.
|
void |
setSeparator(char value)
Sets char Delimiter of text file.
|
void |
setSeparatorString(java.lang.String value)
Sets a string value as separator.
|
void |
setTrimLeadingBlankRowAndColumn(boolean value)
Indicates whether leading blank rows and columns should be trimmed like what ms excel does.
|
void |
setTrimTailingBlankCells(boolean value)
Indicates whether tailing blank cells in one row should be trimmed.
|
getCachedFileFolder, getCheckExcelRestriction, getClearData, getCreateDirectory, getEncryptDocumentProperties, getMergeAreas, getRefreshChartCache, getSaveFormat, getSortExternalNames, getSortNames, getUpdateSmartArt, getValidateMergedAreas, getWarningCallback, setCachedFileFolder, setCheckExcelRestriction, setClearData, setCreateDirectory, setEncryptDocumentProperties, setMergeAreas, setRefreshChartCache, setSortExternalNames, setSortNames, setUpdateSmartArt, setValidateMergedAreas, setWarningCallbackpublic TxtSaveOptions()
public TxtSaveOptions(int saveFormat)
saveFormat - SaveFormat. The file format.
It should be SaveFormat.CSV or SaveFormat.TSV,
otherwise the saved format will be set as SaveFormat.CSV automatically.public char getSeparator()
public void setSeparator(char value)
public java.lang.String getSeparatorString()
public void setSeparatorString(java.lang.String value)
public Encoding getEncoding()
public void setEncoding(Encoding value)
public boolean getAlwaysQuoted()
Remarks
NOTE: This member is now obsolete. Instead, please use QuoteType property instead. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced.public void setAlwaysQuoted(boolean value)
Remarks
NOTE: This member is now obsolete. Instead, please use QuoteType property instead. This property will be removed 12 months later since August 2012. Aspose apologizes for any inconvenience you may have experienced.public int getQuoteType()
See TxtValueQuoteType.
public void setQuoteType(int value)
See TxtValueQuoteType.
public int getFormatStrategy()
public void setFormatStrategy(int value)
public LightCellsDataProvider getLightCellsDataProvider()
public void setLightCellsDataProvider(LightCellsDataProvider value)
public boolean getTrimLeadingBlankRowAndColumn()
Remarks
Same with the rule in ms excel, a row/column will not be taken as blank if it has custom style, even if it contains no cell data. When saving with LightCells mode, this option takes no effect. User should control the output range by the implementation ofgetLightCellsDataProvider()
or by speicifing getExportArea()public void setTrimLeadingBlankRowAndColumn(boolean value)
Remarks
Same with the rule in ms excel, a row/column will not be taken as blank if it has custom style, even if it contains no cell data. When saving with LightCells mode, this option takes no effect. User should control the output range by the implementation ofgetLightCellsDataProvider()
or by speicifing getExportArea()public boolean getTrimTailingBlankCells()
Remarks
When saving with LightCells mode and thegetExportArea() has not been specified,
this option takes no effect and one row will be extended to just the last cell provided by
the implementation getLightCellsDataProvider()public void setTrimTailingBlankCells(boolean value)
Remarks
When saving with LightCells mode and thegetExportArea() has not been specified,
this option takes no effect and one row will be extended to just the last cell provided by
the implementation getLightCellsDataProvider()public boolean getKeepSeparatorsForBlankRow()
public void setKeepSeparatorsForBlankRow(boolean value)
public CellArea getExportArea()
Remarks
If the exported area has been specified,getTrimLeadingBlankRowAndColumn()
will takes no effect.public void setExportArea(CellArea value)
Remarks
If the exported area has been specified,getTrimLeadingBlankRowAndColumn()
will takes no effect.public boolean getExportQuotePrefix()
Style.getQuotePrefix() is true for it. Default is false.public void setExportQuotePrefix(boolean value)
Style.getQuotePrefix() is true for it. Default is false.public boolean getExportAllSheets()
Remarks
The defult value is false.public void setExportAllSheets(boolean value)
Remarks
The defult value is false.See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.