DataObject Members

Provides a basic implementation of the IDataObject interface, which defines a format-independent mechanism for transferring data.

The following tables list the members exposed by the DataObject type.

  Name Description
Public method DataObject Overloaded. Initializes a new instance of the DataObject class.
Top

  Name Description
Public field Static CopyingEvent Identifies the Copying attached event.
Public field Static PastingEvent Identifies the Pasting attached event.
Public field Static SettingDataEvent Identifies the SettingData attached event.
Top

(see also Protected Methods )
  Name Description
Public method Static AddCopyingHandler Adds a Copying event handler to a specified dependency object.
Public method Static AddPastingHandler Adds a Pasting event handler to a specified dependency object.
Public method Static AddSettingDataHandler Adds a SettingData event handler to a specified dependency object.
Public method ContainsAudio Queries a data object for the presence of data in the WaveAudio data format.
Public method ContainsFileDropList Queries a data object for the presence of data in the FileDrop data format.
Public method ContainsImage Queries a data object for the presence of data in the Bitmap data format.
Public method ContainsText Overloaded. Queries a data object for the presence of data in a valid text data format.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetAudioStream Returns a stream that contains data in the WaveAudio data format.
Public method GetData Overloaded. Returns data in a specified data format.
Public method GetDataPresent Overloaded. Determines whether the data is available in, or can be converted to, a specified format.
Public method GetFileDropList Returns a string collection that contains a list of dropped files.
Public method GetFormats Overloaded. Returns a list of formats in which the data in this data object is stored, or can be converted to.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetImage Returns a BitmapSource object that contains data in the Bitmap format.
Public method GetText Overloaded. Returns a string that contains the text data in this data object.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Static RemoveCopyingHandler Removes a Copying event handler from a specified dependency object.
Public method Static RemovePastingHandler Removes a Pasting event handler from a specified dependency object.
Public method Static RemoveSettingDataHandler Removes a SettingData event handler from a specified dependency object.
Public method SetAudio Overloaded. Stores audio data (WaveAudio data format) in this data object. The audio data can be a byte array or a stream.
Public method SetData Overloaded. Stores the specified data in this data object.
Public method SetFileDropList Stores FileDrop data in this data object. The dropped file list is specified as a string collection.
Public method SetImage Stores Bitmap data in this data object. The image data is specified as a BitmapSource.
Public method SetText Overloaded. Stores text data, specified as a string, in this data object.
Public method ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

  Name Description
Public event Static Copying Occurs when the associated dependency object has prepared appropriate data formats that represent the copy selection, added the copy selection formats to a DataObject, and is ready to either place the DataObject on the Clipboard or begin a drag-and-drop operation.
Public event Static Pasting Occurs when the associated dependency object is ready to paste data.
Public event Static SettingData Occurs when the associated dependency object attempts to add a new data format to a DataObject.
Top

  Name Description
Explicit interface implementation Method System.Runtime.InteropServices.ComTypes.IDataObject.DAdvise This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implementation Method System.Runtime.InteropServices.ComTypes.IDataObject.DUnadvise This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implementation Method System.Runtime.InteropServices.ComTypes.IDataObject.EnumDAdvise This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implementation Method System.Runtime.InteropServices.ComTypes.IDataObject.EnumFormatEtc This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implementation Method System.Runtime.InteropServices.ComTypes.IDataObject.GetCanonicalFormatEtc This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implementation Method System.Runtime.InteropServices.ComTypes.IDataObject.GetData This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implementation Method System.Runtime.InteropServices.ComTypes.IDataObject.GetDataHere This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implementation Method System.Runtime.InteropServices.ComTypes.IDataObject.QueryGetData This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implementation Method System.Runtime.InteropServices.ComTypes.IDataObject.SetData This type or member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Top

Community Additions

ADD
Show: