[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IRange.Copy

Copy Method

Copy(IRange, PasteType)

Copies the range to the specified range.

Declaration
[Obsolete("Please use the PasteOption overload instead.")]
void Copy(IRange destination, PasteType pasteType = PasteType.Default)
<Obsolete("Please use the PasteOption overload instead.")>
Sub Copy(destination As IRange, Optional pasteType As PasteType = PasteType.Default)
Parameters
Type Name Description
IRange destination

Specifies the new range to which the specified range will be pasted. It can be the range of the same or another workbook.

PasteType pasteType

Specifies the part of the range to be pasted.

Copy(IRange, PasteOption)

Copies the range to the specified range.

Declaration
void Copy(IRange destination, PasteOption pasteOption)
Sub Copy(destination As IRange, pasteOption As PasteOption)
Parameters
Type Name Description
IRange destination

Specifies the new range to which the specified range will be pasted. It can be the range of the same or another workbook.

PasteOption pasteOption

Specifies the part of the range to be pasted and whether to include hidden range.

Copy(IRange)

Copies the range to the specified range.

Declaration
void Copy(IRange destination)
Sub Copy(destination As IRange)
Parameters
Type Name Description
IRange destination

Specifies the new range to which the specified range will be pasted. It can be the range of the same or another workbook.