documentationfor yFiles for HTML 3.0.0.3

Properties

clipboardContextin GraphClipboardGets the clipboard context for the current clipboard operation.
contextin GraphClipboardEventArgsThe IGraphClipboardContext which is valid for the current clipboard operation.

Method Return Values

createContext (IGraph, IGraph, IInputModeContext?)in GraphClipboardFactory method that creates the context for the upcoming calls to the IClipboardHelper methods.

Method Parameters

GraphClipboardEventArgs (IGraphClipboardContext, List<IModelItem>)in GraphClipboardEventArgsCreates a new instance with the given context and items.
create ()in IClipboardHelper
onCopied (IGraphClipboardContext, IModelItem)in IClipboardHelperThis method is called during the copy operation of the given item.
onCut (IGraphClipboardContext, IModelItem)in IClipboardHelperThis method is called during the cut operation of the given item.
onDuplicated (IGraphClipboardContext, IModelItem, IModelItem)in IClipboardHelperThis method is called after the item has been duplicated in the graph.
onPasted (IGraphClipboardContext, IModelItem)in IClipboardHelperThis method is called after the item has been pasted from the clipboard.
shouldCopy (IGraphClipboardContext, IModelItem)in IClipboardHelperDetermines whether the given item can or should be copied to the clipboard.
shouldCut (IGraphClipboardContext, IModelItem)in IClipboardHelperDetermines whether the given item can or should be cut to the clipboard.
shouldDuplicate (IGraphClipboardContext, IModelItem)in IClipboardHelperDetermines whether the given item can or should be duplicated in the source graph.
shouldPaste (IGraphClipboardContext, IModelItem)in IClipboardHelperDetermines whether the given item can or should be pasted from the clipboard to the target graph.
create ()in IClipboardIdProvider
getId (IGraphClipboardContext, IModelItem)in IClipboardIdProviderGets the ID for the given originalItem.
getItem (IGraphClipboardContext, any)in IClipboardIdProviderGets the item which is represented by the given id.