copyToClipboard method

void copyToClipboard([
  1. Iterable<Part>? coll
])

Make a copy of the given collection of Parts and stores it in a static variable acting as the clipboard.

The clipboard is initially null. It can hold a collection of copied Parts. It also remembers the Model#dataFormat of the diagram from which the parts were copied.

This calls Diagram#copyParts in order to make a copy of the Parts for the clipboard. The values of #copiesParentKey and #copiesGroupKey affect whether a copied node data remembers its tree parent node (if in a TreeModel) or its containing group (if in a GraphLinksModel).

This method may be overridden, but you should consider calling this base method in order to get all of its functionality. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {Iterable.

Implementation

void copyToClipboard([_i3.Iterable<_i3.Part>? coll]) {
  _i4.callMethod(
    this,
    'copyToClipboard',
    [coll ?? _i5.undefined],
  );
}