Export (0) Print
Expand All

DataObject Members

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

The DataObject type exposes the following members.

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

  NameDescription
Public method Static member AddCopyingHandler Adds a Copying event handler to a specified dependency object.
Public method Static member AddPastingHandler Adds a Pasting event handler to a specified dependency object.
Public method Static member 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 Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member RemoveCopyingHandler Removes a Copying event handler from a specified dependency object.
Public method Static member RemovePastingHandler Removes a Pasting event handler from a specified dependency object.
Public method Static member 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

  NameDescription
Public field Static member CopyingEvent Identifies the Copying attached event.
Public field Static member PastingEvent Identifies the Pasting attached event.
Public field Static member SettingDataEvent Identifies the SettingData attached event.
Top

  NameDescription
Public attached event 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 attached event Pasting Occurs when the associated dependency object is ready to paste data.
Public attached event SettingData Occurs when the associated dependency object attempts to add a new data format to a DataObject.
Top

  NameDescription
Explicit interface implemetation Private method 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 implemetation Private method 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 implemetation Private method 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 implemetation Private method 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 implemetation Private method 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 implemetation Private method 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 implemetation Private method 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 implemetation Private method 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 implemetation Private method 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:
© 2014 Microsoft