ClipboardObject Class

 

Represents a clipboard object for the purpose of data transfer. This object interoperates between DataObject, T:System.Runtime.InteropServices.Comtypes.IDataObject, and IDataObject.

Namespace:   Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)


public class ClipboardObject : DataObject, IDataObject, IDataObject

NameDescription
System_CAPS_pubmethodClipboardObject()

Initializes a new instance of the ClipboardObject class based on the standard DataObject class.

System_CAPS_pubmethodClipboardObject(Object)

Initializes a new instance of the ClipboardObject class containing the specified data, or wraps an existing instance of the class.

System_CAPS_pubmethodClipboardObject(String, Object)

Initializes a new instance of the ClipboardObject class containing the specified data in the specified format.

NameDescription
System_CAPS_pubmethodContainsAudio()

(Inherited from DataObject.)

System_CAPS_pubmethodContainsFileDropList()

(Inherited from DataObject.)

System_CAPS_pubmethodContainsImage()

(Inherited from DataObject.)

System_CAPS_pubmethodContainsText()

(Inherited from DataObject.)

System_CAPS_pubmethodContainsText(TextDataFormat)

(Inherited from DataObject.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetAudioStream()

(Inherited from DataObject.)

System_CAPS_pubmethodGetData(String)

Retrieves the data stored in the clipboard object in the specified format.(Overrides DataObject.GetData(String).)

System_CAPS_pubmethodGetData(String, Boolean)

Retrieves the data stored in the clipboard object in the specified format, using an automated conversion parameter to determine whether to convert the data to the format.(Overrides DataObject.GetData(String, Boolean).)

System_CAPS_pubmethodGetData(Type)

Retrieves the data stored in the clipboard object in the specified format.(Overrides DataObject.GetData(Type).)

System_CAPS_pubmethodGetDataPresent(String)

Indicates whether data stored in the clipboard object can be converted to or is associated with the specified format.(Overrides DataObject.GetDataPresent(String).)

System_CAPS_pubmethodGetDataPresent(String, Boolean)

Indicates whether data stored in the clipboard object can be converted to or is associated with the specified format, using an automatic conversion parameter to determine whether to convert the data to the format.(Overrides DataObject.GetDataPresent(String, Boolean).)

System_CAPS_pubmethodGetDataPresent(Type)

Indicates whether data stored in the clipboard object can be converted to or is associated with the specified format.(Overrides DataObject.GetDataPresent(Type).)

System_CAPS_pubmethodGetFileDropList()

(Inherited from DataObject.)

System_CAPS_pubmethodGetFormats()

Retrieves a list of all formats that are supported for the data stored in the clipboard object.(Overrides DataObject.GetFormats().)

System_CAPS_pubmethodGetFormats(Boolean)

Retrieves a list of all formats that are supported for the data stored in the clipboard object, using an automatic conversion parameter to determine whether to retrieve only native data formats or all formats that the data can be converted to.(Overrides DataObject.GetFormats(Boolean).)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetImage()

(Inherited from DataObject.)

System_CAPS_pubmethodGetText()

(Inherited from DataObject.)

System_CAPS_pubmethodGetText(TextDataFormat)

(Inherited from DataObject.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSetAudio(Byte[])

(Inherited from DataObject.)

System_CAPS_pubmethodSetAudio(Stream)

(Inherited from DataObject.)

System_CAPS_pubmethodSetData(Object)

Adds data to the clipboard object.(Overrides DataObject.SetData(Object).)

System_CAPS_pubmethodSetData(String, Boolean, Object)

Adds data to the clipboard object.(Overrides DataObject.SetData(String, Boolean, Object).)

System_CAPS_pubmethodSetData(String, Object)

Adds data to the clipboard object in the specified format.(Overrides DataObject.SetData(String, Object).)

System_CAPS_pubmethodSetData(Type, Object)

Adds data to the clipboard object, using the specified type as the format.(Overrides DataObject.SetData(Type, Object).)

System_CAPS_pubmethodSetFileDropList(StringCollection)

(Inherited from DataObject.)

System_CAPS_pubmethodSetImage(Image)

(Inherited from DataObject.)

System_CAPS_pubmethodSetText(String)

(Inherited from DataObject.)

System_CAPS_pubmethodSetText(String, TextDataFormat)

(Inherited from DataObject.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.DAdvise(FORMATETC[], UInt32, IAdviseSink, UInt32)

Creates a connection between the clipboard 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(UInt32)

Removes a notification connection that has been established.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.EnumDAdvise(IEnumSTATDATA)

Creates an object that can be used to enumerate the current advisory connections.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.EnumFormatEtc(UInt32, IEnumFORMATETC)

Creates an object for enumerating the FORMATETC structures for a data object. These structures are used in calls to IDataObject.GetData or IDataObject.SetData.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.GetCanonicalFormatEtc(FORMATETC[], FORMATETC[])

Provides a standard FORMATETC structure that is logically equivalent to a more complex structure. Use this method to determine whether two different FORMATETC structures return the same data, removing the need for duplicate rendering.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.GetData(FORMATETC[], STGMEDIUM[])

Obtains data from a source data object. This method is called by a data consumer. It 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[])

Obtains data from a source data object. This method, which is called by a data consumer, differs from the IDataObject.GetData method in that the caller must allocate and free the specified storage medium.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.QueryGetData(FORMATETC[])

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 IDataObject.GetData to get an indication of whether the operation will be successful.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.SetData(FORMATETC[], STGMEDIUM[], Int32)

Transfers data to the object that implements this method. This method is called by an object that contains a data source.

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

Creates a connection between the clipboard 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)

Removes a notification connection that had been previously established.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.EnumDAdvise(IEnumSTATDATA)

Creates an object that can be used to enumerate the current advisory connections.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.EnumFormatEtc(DATADIR)

Creates an object for enumerating the FORMATETC structures for a data object. These structures are used in calls to IDataObject.GetData or IDataObject.SetData.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.GetCanonicalFormatEtc(FORMATETC, FORMATETC)

Provides a standard FORMATETC structure that is logically equivalent to a more complex structure. Use this method to determine whether two different FORMATETC structures return the same data, removing the need for duplicate rendering.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.GetData(FORMATETC, STGMEDIUM)

Obtains data from a source data object. This method is called by a data consumer. It 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)

Obtains data from a source data object. This method, which is called by a data consumer, differs from the IDataObject.GetData method in that the caller must allocate and free the specified storage medium.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.QueryGetData(FORMATETC)

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 IDataObject.GetData to get an indication of whether the operation will be successful.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDataObject.SetData(FORMATETC, STGMEDIUM, Boolean)

Transfers data to the object that implements this method. This method is called by an object that contains a data source.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: