setKeyForLinkData method
Change the unique key of a given link data that is already in this model. The new key value must be unique -- i.e. not in use by another link data object. You can call #findLinkDataForKey to check if a proposed new key is already in use.
If this is called when #linkKeyProperty is the empty string (i.e. its default value), this method has no effect. If this is called on a link data object that is not (yet) in this model, this unconditionally modifies the property to the new key value. @param {ObjectData} linkdata a JavaScript object represented by a link @param {string|number} key @see #linkKeyProperty @see #getKeyForLinkData @since 1.6
Implementation
void setKeyForLinkData(
_i2.Object linkdata,
_i2.dynamic key,
) {
_i4.callMethod(
this,
'setKeyForLinkData',
[
linkdata,
key,
],
);
}