Aspose::Cells::CopyOptions class

CopyOptions class

Represents the copy options.

class CopyOptions

Methods

MethodDescription
CopyOptions()CopyOptions constructor.
CopyOptions(CopyOptions_Impl* impl)Constructs from an implementation object.
CopyOptions(const CopyOptions& src)Copy constructor.
GetColumnCharacterWidth()Indicates whether copying column width in unit of characters.
GetCopyInvalidFormulasAsValues()If the formula is not valid for the dest destination, only copy values.
GetCopyNames()Indicates whether copying the names.
GetExtendToAdjacentRange()Indicates whether extend ranges when copying the range to adjacent range.
GetKeepMacros()Indicates whether keeping macros;.
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. True means the copied chart’s data source refers to the destination sheet.
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. However, for some situations user may need the copied formulas refer to worksheets with the same name in the same workbook, such as when those worksheets have been copied before this copy operation, then this property should be kept as true.
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const CopyOptions& src)operator=
SetColumnCharacterWidth(bool value)Indicates whether copying column width in unit of characters.
SetCopyInvalidFormulasAsValues(bool value)If the formula is not valid for the dest destination, only copy values.
SetCopyNames(bool value)Indicates whether copying the names.
SetExtendToAdjacentRange(bool value)Indicates whether extend ranges when copying the range to adjacent range.
SetKeepMacros(bool value)Indicates whether keeping macros;.
SetReferToDestinationSheet(bool 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.
SetReferToSheetWithSameName(bool 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. However, for some situations user may need the copied formulas refer to worksheets with the same name in the same workbook, such as when those worksheets have been copied before this copy operation, then this property should be kept as true.
~CopyOptions()Destructor.

Fields

FieldDescription
_implThe implementation object.

See Also