Table of Contents

Method SetDataObject

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetDataObject(IDataObject?)

Clears the Clipboard and then adds data to it.

public static void SetDataObject(IDataObject? value)

Parameters

value IDataObject

The data to place on the Clipboard.

SetDataObject(IDataObject?, bool)

Places a specified data object on the system Clipboard and accepts a Boolean parameter that indicates whether the data object should be left on the Clipboard when the application exits.

public static void SetDataObject(IDataObject? data, bool copy)

Parameters

data IDataObject

A data object (an object that implements IDataObject) to place on the system Clipboard.

copy bool

true to leave the data on the system Clipboard when the application exits; false to clear the data from the system Clipboard when the application exits.