public class CopyOptions
extends java.lang.Object
| Constructor and Description |
|---|
CopyOptions()
CopyOptions constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getColumnCharacterWidth()
Indicates whether copying column width in unit of characters.
|
boolean |
getCopyInvalidFormulasAsValues()
If the formula is not valid for the dest destination, only copy values.
|
boolean |
getCopyNames()
Indicates whether copying the names.
|
boolean |
getExtendToAdjacentRange()
Indicates whether extend ranges when copying the range to adjacent range.
|
boolean |
getKeepMacros()
Indicates whether keeping macros;
|
boolean |
getReferToDestinationSheet()
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.
|
boolean |
getReferToSheetWithSameName()
In ms excel, when copying formulas which refer to other worksheets while copying a worksheet to another one,
the copied formulas should refer to source workbook.
|
void |
setColumnCharacterWidth(boolean value)
Indicates whether copying column width in unit of characters.
|
void |
setCopyInvalidFormulasAsValues(boolean value)
If the formula is not valid for the dest destination, only copy values.
|
void |
setCopyNames(boolean value)
Indicates whether copying the names.
|
void |
setExtendToAdjacentRange(boolean value)
Indicates whether extend ranges when copying the range to adjacent range.
|
void |
setKeepMacros(boolean value)
Indicates whether keeping macros;
|
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.
|
void |
setReferToSheetWithSameName(boolean value)
In ms excel, when copying formulas which refer to other worksheets while copying a worksheet to another one,
the copied formulas should refer to source workbook.
|
public boolean getKeepMacros()
Remarks
Only for copying workbook.public void setKeepMacros(boolean value)
Remarks
Only for copying workbook.public boolean getExtendToAdjacentRange()
Remarks
If it's true, only extends the range of the hyperlink,not adding a new hyperlink when copying hyperlinks to adjacent rows.public void setExtendToAdjacentRange(boolean value)
Remarks
If it's true, only extends the range of the hyperlink,not adding a new hyperlink when copying hyperlinks to adjacent rows.public boolean getCopyNames()
public void setCopyNames(boolean value)
public boolean getCopyInvalidFormulasAsValues()
public void setCopyInvalidFormulasAsValues(boolean value)
public boolean getColumnCharacterWidth()
public void setColumnCharacterWidth(boolean value)
public boolean getReferToSheetWithSameName()
Remarks
The default value is true.public void setReferToSheetWithSameName(boolean value)
Remarks
The default value is true.public boolean getReferToDestinationSheet()
Remarks
The default value is false, it works as MS Excel. For example: if copying a chart with the data source "sheet1!A1:B10" from worksheet "sheet1 to other worksheet "sheet2", The data source will be changed as "sheet2!A1:B10"public void setReferToDestinationSheet(boolean value)
Remarks
The default value is false, it works as MS Excel. For example: if copying a chart with the data source "sheet1!A1:B10" from worksheet "sheet1 to other worksheet "sheet2", The data source will be changed as "sheet2!A1:B10"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.