DataObject Methods

 

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

NameDescription
System_CAPS_pubmethodContainsAudio()

Indicates whether the data object contains data in the WaveAudio format.

System_CAPS_pubmethodContainsFileDropList()

Indicates whether the data object contains data that is in the FileDrop format or can be converted to that format.

System_CAPS_pubmethodContainsImage()

Indicates whether the data object contains data that is in the Bitmap format or can be converted to that format.

System_CAPS_pubmethodContainsText()

Indicates whether the data object contains data in the UnicodeText format.

System_CAPS_pubmethodContainsText(TextDataFormat)

Indicates whether the data object contains text data in the format indicated by the specified TextDataFormat value.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetAudioStream()

Retrieves an audio stream from the data object.

System_CAPS_pubmethodGetData(String)

Returns the data associated with the specified data format.

System_CAPS_pubmethodGetData(String, Boolean)

Returns the data associated with the specified data format, using an automated conversion parameter to determine whether to convert the data to the format.

System_CAPS_pubmethodGetData(Type)

Returns the data associated with the specified class type format.

System_CAPS_pubmethodGetDataPresent(String)

Determines whether data stored in this DataObject is associated with, or can be converted to, the specified format.

System_CAPS_pubmethodGetDataPresent(String, Boolean)

Determines whether this DataObject contains data in the specified format or, optionally, contains data that can be converted to the specified format.

System_CAPS_pubmethodGetDataPresent(Type)

Determines whether data stored in this DataObject is associated with, or can be converted to, the specified format.

System_CAPS_pubmethodGetFileDropList()

Retrieves a collection of file names from the data object.

System_CAPS_pubmethodGetFormats()

Returns a list of all formats that data stored in this DataObject is associated with or can be converted to.

System_CAPS_pubmethodGetFormats(Boolean)

Returns a list of all formats that data stored in this DataObject is associated with or can be converted to, using an automatic conversion parameter to determine whether to retrieve only native data formats or all formats that the data can be converted to.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetImage()

Retrieves an image from the data object.

System_CAPS_pubmethodGetText()

Retrieves text data from the data object in the UnicodeText format.

System_CAPS_pubmethodGetText(TextDataFormat)

Retrieves text data from the data object in the format indicated by the specified TextDataFormat value.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSetAudio(Byte[])

Adds a Byte array to the data object in the WaveAudio format after converting it to a Stream.

System_CAPS_pubmethodSetAudio(Stream)

Adds a Stream to the data object in the WaveAudio format.

System_CAPS_pubmethodSetData(Object)

Adds the specified object to the DataObject using the object type as the data format.

System_CAPS_pubmethodSetData(String, Boolean, Object)

Adds the specified object to the DataObject using the specified format and indicating whether the data can be converted to another format.

System_CAPS_pubmethodSetData(String, Object)

Adds the specified object to the DataObject using the specified format.

System_CAPS_pubmethodSetData(Type, Object)

Adds the specified object to the DataObject using the specified type as the format.

System_CAPS_pubmethodSetFileDropList(StringCollection)

Adds a collection of file names to the data object in the FileDrop format.

System_CAPS_pubmethodSetImage(Image)

Adds an Image to the data object in the Bitmap format.

System_CAPS_pubmethodSetText(String)

Adds text data to the data object in the UnicodeText format.

System_CAPS_pubmethodSetText(String, TextDataFormat)

Adds text data to the data object in the format indicated by the specified TextDataFormat value.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.DAdvise(FORMATETC, ADVF, IAdviseSink, Int32)

This API supports the product infrastructure and is not intended to be used directly from your code. Creates a connection between a data object and an advisory sink. This method is called by an object that supports an advisory sink and enables the advisory sink to be notified of changes in the object's data.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.DUnadvise(Int32)

This API supports the product infrastructure and is not intended to be used directly from your code. Destroys a notification connection that had been previously established.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.EnumDAdvise(IEnumSTATDATA)

This API supports the product infrastructure and is not intended to be used directly from your code. Creates an object that can be used to enumerate the current advisory connections.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.EnumFormatEtc(DATADIR)

This API supports the product infrastructure and is not intended to be used directly from your code. Creates an object for enumerating the FORMATETC structures for a data object. These structures are used in calls to GetData or SetData.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.GetCanonicalFormatEtc(FORMATETC, FORMATETC)

This API supports the product infrastructure and is not intended to be used directly from your code. Provides a standard FORMATETC structure that is logically equivalent to a more complex structure. Use this method to determine whether two different FORMATETC structures would return the same data, removing the need for duplicate rendering.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.GetData(FORMATETC, STGMEDIUM)

This API supports the product infrastructure and is not intended to be used directly from your code. Obtains data from a source data object. The GetData method, which is called by a data consumer, renders the data described in the specified FORMATETC structure and transfers it through the specified STGMEDIUM structure. The caller then assumes responsibility for releasing the STGMEDIUM structure.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.GetDataHere(FORMATETC, STGMEDIUM)

This API supports the product infrastructure and is not intended to be used directly from your code. Obtains data from a source data object. This method, which is called by a data consumer, differs from the GetData method in that the caller must allocate and free the specified storage medium.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.QueryGetData(FORMATETC)

This API supports the product infrastructure and is not intended to be used directly from your code. Determines whether the data object is capable of rendering the data described in the FORMATETC structure. Objects attempting a paste or drop operation can call this method before calling GetData to get an indication of whether the operation may be successful.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.SetData(FORMATETC, STGMEDIUM, Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Transfers data to the object that implements this method. This method is called by an object that contains a data source.

Return to top
Show: