GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / CreateDataObject Method
the original collection passed to CopyToClipboard
the GoDocument holding a copy of coll that normally should be the primary value in the clipboard, with a DataFormat as specified by GoDocument.DataFormat.
In This Topic
    CreateDataObject Method
    In This Topic
    This method is called from CopyToClipboard to produce a DataObject representing the available data formats and their values for the objects in the clipboard.
    Syntax
    protected virtual DataObject CreateDataObject( 
       IGoCollection coll,
       GoDocument clipdoc
    )

    Parameters

    coll
    the original collection passed to CopyToClipboard
    clipdoc
    the GoDocument holding a copy of coll that normally should be the primary value in the clipboard, with a DataFormat as specified by GoDocument.DataFormat.
    Remarks
    In addition to using the GoDocument.DataFormat format to store the clipdoc, this calls GetBitmapFromCollection(IGoCollection) to draw the collection into a bitmap and to insert it into the clipboard as an alternative Bitmap data format. Finally, each object in the clipboard document that implements IGoLabeledPart provides a text value. The text strings are all concatenated together, separated by NewLines, to provide an alternative textual data format value in the clipboard for those applications that cannot handle bitmaps either.
    See Also