Cut

function Cut(destination: ApiRange = null): void

Description

Cuts the range and save it to the clipboard or paste it to the specified range.

Parameters

destinationApiRangedefault: null

Specifies the new range to which the cut range will be pasted. If this argument is omitted, the range will be copied to the clipboard.

Returns

void

Try It

var oWorksheet = Api.GetActiveSheet();
var oRange = oWorksheet.GetRange("A1");
oRange.SetValue("This is a sample text which is move to the range A3.");
oRange.Cut(oWorksheet.GetRange("A3"));

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).