GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / PasteFromClipboard Method
In This Topic
    PasteFromClipboard Method
    In This Topic
    Copy the GoObjects in the clipboard into this view's document.
    Syntax
    public virtual GoCopyDictionary PasteFromClipboard()

    Return Value

    The GoCopyDictionary representing the results of the copy.
    Remarks

    This assumes the clipboard has a value in this view's document's GoDocument.DataFormat. The value will be a GoDocument; we just call GoDocument.CopyFromCollection to copy the objects from the clipboard document into this document.

    All of the pasted objects will be copied by deserializing them. If any of the objects, or any of the objects that they refer to, are not (de-)serializable, there will be a serialization exception, and the paste might fail. Exceptions will be logged to any trace listeners. The User Guide discusses serialization and deserialization in more detail.

    See Also