<PackageReference Include="System.Drawing.Common" Version="10.0.0-preview.7.25380.108" />

IDataObject

public static void PopulateVTable(Vtbl* vtable)

public uint AddRef()

public HRESULT DAdvise(FORMATETC* pformatetc, uint advf, IAdviseSink* pAdvSink, UInt32* pdwConnection)

Called by an object supporting an advise sink to create a connection between a data object and the advise sink. This enables the advise sink to be notified of changes in the data of the object.

public HRESULT DUnadvise(uint dwConnection)

Destroys a notification connection that had been previously set up.

public HRESULT EnumDAdvise(IEnumSTATDATA** ppenumAdvise)

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

public HRESULT EnumFormatEtc(uint dwDirection, IEnumFORMATETC** ppenumFormatEtc)

Creates an object to enumerate the formats supported by a data object.

public HRESULT GetCanonicalFormatEtc(FORMATETC* pformatectIn, FORMATETC* pformatetcOut)

Provides a potentially different but logically equivalent FORMATETC structure. You use this method to determine whether two different FORMATETC structures would return the same data, removing the need for duplicate rendering.

public HRESULT GetData(FORMATETC* pformatetcIn, STGMEDIUM* pmedium)

Called by a data consumer to obtain data from a source data object.

public HRESULT GetDataHere(FORMATETC* pformatetc, STGMEDIUM* pmedium)

Called by a data consumer to obtain data from a source data object. This method differs from the GetData method in that the caller must allocate and free the specified storage medium.

public HRESULT QueryGetData(FORMATETC* pformatetc)

Determines whether the data object is capable of rendering the data as specified. Objects attempting a paste or drop operation can call this method before calling IDataObject::GetData to get an indication of whether the operation may be successful.

public HRESULT QueryInterface(Guid* riid, Void** ppvObject)

public uint Release()

public HRESULT SetData(FORMATETC* pformatetc, STGMEDIUM* pmedium, BOOL fRelease)

Called by an object containing a data source to transfer data to the object that implements this method.