All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aspose.cells.CopyOptions.html Maven / Gradle / Ivy

There is a newer version: 23.1
Show newest version





CopyOptions




com.aspose.cells
Class CopyOptions

java.lang.Object
    extended by com.aspose.cells.CopyOptions

public class CopyOptions 
extends java.lang.Object

Represents the copy options.


Constructor Summary
CopyOptions()
           CopyOptions constructor.
 
Property Getters/Setters Summary
booleangetColumnCharacterWidth()
voidsetColumnCharacterWidth(boolean)
           Indicates whether copying column width in unit of characters.
booleangetCopyInvalidFormulasAsValues()
voidsetCopyInvalidFormulasAsValues(boolean)
           If the formula is not valid for the dest destination, only copy values.
booleangetCopyNames()
voidsetCopyNames(boolean)
           Indicates whether copying the names.
booleangetExtendToAdjacentRange()
voidsetExtendToAdjacentRange(boolean)
           Indicates whether extend ranges when copying the range to adjacent range.
booleangetKeepMacros()
voidsetKeepMacros(boolean)
           Indicates whether keeping macros;
booleangetReferToDestinationSheet()
voidsetReferToDestinationSheet(boolean)
           When copying the range in the same file and the chart refers to the source sheet, False means the copied chart's data source will not be changed. True means the copied chart's data source refers to the destination sheet.
booleangetReferToSheetWithSameName()
voidsetReferToSheetWithSameName(boolean)
           When copying a worksheet to another workbook and the worksheet contains the formulas which refer to other worksheets in MS Excel, the copied formulas should refer to source workbook. But sometimes we have copied other worksheets and we hope the copied formulas refer to other worksheets with the name in the same workbook, please set this property as true.
 

Constructor Detail

CopyOptions

public CopyOptions()
CopyOptions constructor.

Property Getters/Setters Detail

getKeepMacros/setKeepMacros

public boolean getKeepMacros() / public void setKeepMacros(boolean value)
Indicates whether keeping macros; Only for copying workbook.

setKeepMacros

public void setKeepMacros(boolean value)
Indicates whether keeping macros; Only for copying workbook.

getExtendToAdjacentRange/setExtendToAdjacentRange

public boolean getExtendToAdjacentRange() / public void setExtendToAdjacentRange(boolean value)
Indicates whether extend ranges when copying the range to adjacent range. If it's true, only extends the range of the hyperlink,not adding a new hyperlink when copying hyperlinks to adjacent rows.

setExtendToAdjacentRange

public void setExtendToAdjacentRange(boolean value)
Indicates whether extend ranges when copying the range to adjacent range. If it's true, only extends the range of the hyperlink,not adding a new hyperlink when copying hyperlinks to adjacent rows.

getCopyNames/setCopyNames

public boolean getCopyNames() / public void setCopyNames(boolean value)
Indicates whether copying the names.

setCopyNames

public void setCopyNames(boolean value)
Indicates whether copying the names.

getCopyInvalidFormulasAsValues/setCopyInvalidFormulasAsValues

public boolean getCopyInvalidFormulasAsValues() / public void setCopyInvalidFormulasAsValues(boolean value)
If the formula is not valid for the dest destination, only copy values.

setCopyInvalidFormulasAsValues

public void setCopyInvalidFormulasAsValues(boolean value)
If the formula is not valid for the dest destination, only copy values.

getColumnCharacterWidth/setColumnCharacterWidth

public boolean getColumnCharacterWidth() / public void setColumnCharacterWidth(boolean value)
Indicates whether copying column width in unit of characters.

setColumnCharacterWidth

public void setColumnCharacterWidth(boolean value)
Indicates whether copying column width in unit of characters.

getReferToSheetWithSameName/setReferToSheetWithSameName

public boolean getReferToSheetWithSameName() / public void setReferToSheetWithSameName(boolean value)
When copying a worksheet to another workbook and the worksheet contains the formulas which refer to other worksheets in MS Excel, the copied formulas should refer to source workbook. But sometimes we have copied other worksheets and we hope the copied formulas refer to other worksheets with the name in the same workbook, please set this property as true. The default value is true.

setReferToSheetWithSameName

public void setReferToSheetWithSameName(boolean value)
When copying a worksheet to another workbook and the worksheet contains the formulas which refer to other worksheets in MS Excel, the copied formulas should refer to source workbook. But sometimes we have copied other worksheets and we hope the copied formulas refer to other worksheets with the name in the same workbook, please set this property as true. The default value is true.

getReferToDestinationSheet/setReferToDestinationSheet

public boolean getReferToDestinationSheet() / public void setReferToDestinationSheet(boolean value)
When copying the range in the same file and the chart refers to the source sheet, False means the copied chart's data source will not be changed. True means the copied chart's data source refers to the destination sheet. The default value is false, it works as MS Excel.

setReferToDestinationSheet

public void setReferToDestinationSheet(boolean value)
When copying the range in the same file and the chart refers to the source sheet, False means the copied chart's data source will not be changed. True means the copied chart's data source refers to the destination sheet. The default value is false, it works as MS Excel.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy