Editare

Partajați prin


DataObjectPastingEventArgs.DataObject Property

Definition

Gets or sets a suggested DataObject to use for the paste operation.

public:
 property System::Windows::IDataObject ^ DataObject { System::Windows::IDataObject ^ get(); void set(System::Windows::IDataObject ^ value); };
public System.Windows.IDataObject DataObject { get; set; }
member this.DataObject : System.Windows.IDataObject with get, set
Public Property DataObject As IDataObject

Property Value

The currently suggested DataObject to use for the paste operation.

Getting this value returns the currently suggested DataObject for the paste operation.

Setting this value specifies a new suggested DataObject to use for the paste operation.

Exceptions

Raised when an attempt is made to set this property to null.

Raised when an attempt is made to set this property to a data object that contains no data formats.

Remarks

Initially this property contains a DataObject that is identical to that stored in the SourceDataObject property. Custom pasting event handlers can specify a new suggested DataObject to paste by setting this property.

A DataObject stored in this property must have at least one data format, the first of which is automatically applied to the FormatToApply property when this property is set.

Applies to