12 implementations of IDataObject
ComDisabled.Tests (1)
DataObjectComTests.cs (1)
88private class CustomComTypesDataObject : IComDataObject
PresentationCore (1)
System\Windows\dataobject.cs (1)
37public sealed class DataObject : IDataObject, IComDataObject
System.Windows.Forms (4)
System\Windows\Forms\OLE\DataObject.Composition.cs (1)
17internal unsafe partial class Composition : ITypedDataObject, Com.IDataObject.Interface, ComTypes.IDataObject
System\Windows\Forms\OLE\DataObject.Composition.NativeToRuntimeAdapter.cs (1)
19private class NativeToRuntimeAdapter : ComTypes.IDataObject
System\Windows\Forms\OLE\DataObject.Composition.RuntimeToNativeAdapter.cs (1)
17private class RuntimeToNativeAdapter : Com.IDataObject.Interface, ComTypes.IDataObject, Com.IManagedWrapper<Com.IDataObject>
System\Windows\Forms\OLE\DataObject.cs (1)
23ComTypes.IDataObject,
System.Windows.Forms.Tests (6)
System\Windows\Forms\ClipboardTests.cs (2)
604private class CustomDataObject : IDataObject, ComTypes.IDataObject 1121private class JsonDataObject : IDataObject, ComTypes.IDataObject
System\Windows\Forms\DataObjectComTests.cs (1)
67private class CustomComTypesDataObject : IComDataObject
System\Windows\Forms\DataObjectTests.cs (2)
1844private sealed class DataObjectIgnoringStorageMediumForEnhancedMetafile : IComDataObject 2669private class CustomDataObject : IComDataObject, IDataObject
System\Windows\Forms\ToolStripItemTests.cs (1)
10254private class CustomComDataObject : IComDataObject
156 references to IDataObject
ComDisabled.Tests (1)
DataObjectComTests.cs (1)
7using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject;
netstandard (1)
netstandard.cs (1)
1643[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.ComTypes.IDataObject))]
PresentationCore (31)
System\Windows\clipboard.cs (7)
19using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; 369if (data is IComDataObject) 379hr = OleServicesContext.CurrentOleServicesContext.OleIsCurrentClipboard((IComDataObject)data); 461IComDataObject dataObject; 467else if (data is IComDataObject) 469dataObject = (IComDataObject)data; 584IComDataObject oleDataObject;
System\Windows\dataobject.cs (16)
20using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; 71IComDataObject oleDataObject= data as IComDataObject; 148internal DataObject(IComDataObject data) 545int IComDataObject.DAdvise(ref FORMATETC pFormatetc, ADVF advf, IAdviseSink pAdvSink, out int pdwConnection) 558void IComDataObject.DUnadvise(int dwConnection) 573int IComDataObject.EnumDAdvise(out IEnumSTATDATA enumAdvise) 586IEnumFORMATETC IComDataObject.EnumFormatEtc(DATADIR dwDirection) 605int IComDataObject.GetCanonicalFormatEtc(ref FORMATETC pformatetcIn, out FORMATETC pformatetcOut) 627void IComDataObject.GetData(ref FORMATETC formatetc, out STGMEDIUM medium) 697void IComDataObject.GetDataHere(ref FORMATETC formatetc, ref STGMEDIUM medium) 719int IComDataObject.QueryGetData(ref FORMATETC formatetc) 757void IComDataObject.SetData(ref FORMATETC pFormatetcIn, ref STGMEDIUM pmedium, bool fRelease) 2400public OleConverter(IComDataObject data) 2544public IComDataObject OleDataObject 2562internal IComDataObject _innerData;
System\Windows\DragDrop.cs (3)
21using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; 579(IComDataObject)dataObject, 1390dataObject = new DataObject((IComDataObject)data);
System\Windows\OleServicesContext.cs (5)
14using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; 103internal int OleSetClipboard(IComDataObject dataObject) 116internal int OleGetClipboard(ref IComDataObject dataObject) 145internal int OleIsCurrentClipboard(IComDataObject dataObject) 159internal void OleDoDragDrop(IComDataObject dataObject, UnsafeNativeMethods.IOleDropSource dropSource, int allowedEffects, int[] finalEffect)
PresentationFramework (4)
MS\Internal\Controls\WebBrowserSite.cs (3)
21using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; 194int UnsafeNativeMethods.IDocHostUIHandler.FilterDataObject(IComDataObject pDO, out IComDataObject ppDORet)
System\Windows\Standard\NativeMethods.cs (1)
3209public static extern void SHGetItemFromDataObject(IDataObject pdtobj, DOGIF dwFlags, [In] ref Guid riid, [Out, MarshalAs(UnmanagedType.Interface)] out object ppv);
PresentationUI (4)
MS\Internal\Documents\Application\NativeDirectoryServicesQueryAPIs.cs (1)
47[Out] out IDataObject ppDataObj
MS\Internal\Documents\PeoplePickerWrapper.cs (3)
58IDataObject data = OpenQueryWindow(hWndParent); 118private IDataObject OpenQueryWindow(IntPtr hWndParent) 147IDataObject data = null;
System (1)
src\libraries\shims\System\ref\System.cs (1)
823[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.ComTypes.IDataObject))]
System.Windows.Forms (53)
System\Windows\Forms\Control.cs (1)
4869ComTypes.IDataObject dataObject = CreateRuntimeDataObjectForDrag(data);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (3)
12using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; 2162if (data is not IComDataObject dataObject) 2219internal IDropSource.Interface CreateDropSource(IComDataObject dataObject, Bitmap? dragImage, Point cursorOffset, bool useDefaultDragImage)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.WebBrowserSite.cs (2)
182HRESULT IDocHostUIHandler.FilterDataObject(ComTypes.IDataObject pDO, out ComTypes.IDataObject? ppDORet)
System\Windows\Forms\OLE\DataObject.Composition.cs (4)
15/// and <see cref="ComTypes.IDataObject"/> calls. 35private readonly ComTypes.IDataObject _runtimeDataObject; 45private Composition(IDataObject winFormsDataObject, Com.IDataObject.Interface nativeDataObject, ComTypes.IDataObject runtimeDataObject) 73public static Composition CreateFromRuntimeDataObject(ComTypes.IDataObject runtimeDataObject)
System\Windows\Forms\OLE\DataObject.Composition.NativeToRuntimeAdapter.cs (10)
17/// Maps native pointer <see cref="Com.IDataObject"/> to <see cref="ComTypes.IDataObject"/>. 32int ComTypes.IDataObject.DAdvise(ref FORMATETC pFormatetc, ADVF advf, IAdviseSink adviseSink, out int connection) 43void ComTypes.IDataObject.DUnadvise(int connection) 49int ComTypes.IDataObject.EnumDAdvise(out IEnumSTATDATA? enumAdvise) 58IEnumFORMATETC ComTypes.IDataObject.EnumFormatEtc(DATADIR direction) 70int ComTypes.IDataObject.GetCanonicalFormatEtc(ref FORMATETC formatIn, out FORMATETC formatOut) 78void ComTypes.IDataObject.GetData(ref FORMATETC format, out STGMEDIUM medium) 88void ComTypes.IDataObject.GetDataHere(ref FORMATETC format, ref STGMEDIUM medium) 98int ComTypes.IDataObject.QueryGetData(ref FORMATETC format) 104void ComTypes.IDataObject.SetData(ref FORMATETC formatIn, ref STGMEDIUM medium, bool release)
System\Windows\Forms\OLE\DataObject.Composition.RuntimeToNativeAdapter.cs (3)
15/// Maps the runtime <see cref="ComTypes.IDataObject"/> to the native <see cref="Com.IDataObject.Interface"/>. 19private readonly ComTypes.IDataObject _runtimeDataObject; 21public RuntimeToNativeAdapter(ComTypes.IDataObject dataObject) => _runtimeDataObject = dataObject;
System\Windows\Forms\OLE\DataObject.cs (10)
67else if (data is ComTypes.IDataObject comDataObject) 466int ComTypes.IDataObject.DAdvise(ref FORMATETC pFormatetc, ADVF advf, IAdviseSink pAdvSink, out int pdwConnection) => 469void ComTypes.IDataObject.DUnadvise(int dwConnection) => _innerData.DUnadvise(dwConnection); 471int ComTypes.IDataObject.EnumDAdvise(out IEnumSTATDATA? enumAdvise) => 474IEnumFORMATETC ComTypes.IDataObject.EnumFormatEtc(DATADIR dwDirection) => 477int ComTypes.IDataObject.GetCanonicalFormatEtc(ref FORMATETC pformatetcIn, out FORMATETC pformatetcOut) => 480void ComTypes.IDataObject.GetData(ref FORMATETC formatetc, out STGMEDIUM medium) => 483void ComTypes.IDataObject.GetDataHere(ref FORMATETC formatetc, ref STGMEDIUM medium) => 486int ComTypes.IDataObject.QueryGetData(ref FORMATETC formatetc) => 489void ComTypes.IDataObject.SetData(ref FORMATETC pFormatetcIn, ref STGMEDIUM pmedium, bool fRelease) =>
System\Windows\Forms\OLE\DragDropHelper.cs (16)
12using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; 63if (dataObject is not IComDataObject comDataObject) 77if (e.Data is not IComDataObject dataObject) 90public static void DragEnter(HWND targetWindowHandle, IComDataObject dataObject, ref Point point, DROPEFFECT effect) 139if (!TryGetDragDropHelper<IDropTargetHelper>(dropTargetHelper) || e.Data is not IComDataObject dataObject) 152private static unsafe bool GetBooleanFormat(IComDataObject dataObject, string format) 223public static bool IsInDragLoop(IComDataObject dataObject) => GetBooleanFormat(dataObject, PInvoke.CFSTR_INDRAGLOOP); 242public static void ReleaseDragDropFormats(IComDataObject comDataObject) 261private static unsafe void SetBooleanFormat(IComDataObject dataObject, string format, bool value) 310public static void SetDragImage(IComDataObject dataObject, GiveFeedbackEventArgs e) 326public static void SetDragImage(IComDataObject dataObject, Bitmap? dragImage, Point cursorOffset, bool usingDefaultDragImage) 383if (e.Data is not IComDataObject dataObject) 404IComDataObject dataObject, 479public static void SetInDragLoop(IComDataObject dataObject, bool inDragLoop) 499private static void SetIsShowingText(IComDataObject dataObject, bool isShowingText) 511private static void SetUsingDefaultDragImage(IComDataObject dataObject, bool usingDefaultDragImage)
System\Windows\Forms\OLE\DropSource.cs (4)
8using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; 15private readonly IComDataObject _dataObject; 20public DropSource(ISupportOleDropSource peer, IComDataObject dataObject, Bitmap? dragImage, Point cursorOffset, bool useDefaultDragImage) 84void UpdateDragImage(GiveFeedbackEventArgs e, IComDataObject? dataObject, HWND lastHwndTarget)
System.Windows.Forms.Primitives (2)
Interop\Mshtml\Interop.IDocHostUIHandler.cs (2)
90IDataObject pDO, 91out IDataObject? ppDORet);
System.Windows.Forms.Tests (52)
System\Windows\Forms\ClipboardTests.cs (11)
609int ComTypes.IDataObject.DAdvise(ref ComTypes.FORMATETC pFormatetc, ComTypes.ADVF advf, ComTypes.IAdviseSink adviseSink, out int connection) => throw new NotImplementedException(); 610void ComTypes.IDataObject.DUnadvise(int connection) => throw new NotImplementedException(); 611int ComTypes.IDataObject.EnumDAdvise(out ComTypes.IEnumSTATDATA enumAdvise) => throw new NotImplementedException(); 612ComTypes.IEnumFORMATETC ComTypes.IDataObject.EnumFormatEtc(ComTypes.DATADIR direction) 627int ComTypes.IDataObject.GetCanonicalFormatEtc(ref ComTypes.FORMATETC formatIn, out ComTypes.FORMATETC formatOut) => throw new NotImplementedException(); 631void ComTypes.IDataObject.GetData(ref ComTypes.FORMATETC format, out ComTypes.STGMEDIUM medium) => throw new NotImplementedException(); 632void ComTypes.IDataObject.GetDataHere(ref ComTypes.FORMATETC format, ref ComTypes.STGMEDIUM medium) => throw new NotImplementedException(); 638int ComTypes.IDataObject.QueryGetData(ref ComTypes.FORMATETC format) => throw new NotImplementedException(); 643void ComTypes.IDataObject.SetData(ref ComTypes.FORMATETC formatIn, ref ComTypes.STGMEDIUM medium, bool release) => throw new NotImplementedException(); 1018ComTypes.IDataObject dataObject = Clipboard.GetDataObject().Should().BeAssignableTo<ComTypes.IDataObject>().Subject;
System\Windows\Forms\ControlTests.Methods.ClipboardTests.cs (2)
7using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; 26yield return new object[] { new Mock<IComDataObject>(MockBehavior.Strict).Object, allowedEffects };
System\Windows\Forms\DataObjectComTests.cs (2)
6using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; 21IComDataObject inData = accessor.CreateRuntimeDataObjectForDrag(data);
System\Windows\Forms\DataObjectTests.cs (31)
19using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; 1894IComDataObject comDataObject = dataObject; 1906Mock<IComDataObject> mockComDataObject = new(MockBehavior.Strict); 1916IComDataObject comDataObject = dataObject; 1930IComDataObject comDataObject = dataObject; 1940Mock<IComDataObject> mockComDataObject = new(MockBehavior.Strict); 1945IComDataObject comDataObject = dataObject; 1954IComDataObject comDataObject = dataObject; 1975Mock<IComDataObject> mockComDataObject = new(MockBehavior.Strict); 1984IComDataObject comDataObject = dataObject; 2003IComDataObject comDataObject = dataObject; 2058IComDataObject comDataObject = dataObject; 2120IComDataObject comDataObject = dataObject; 2145IComDataObject comDataObject = dataObject; 2168IComDataObject comDataObject = dataObject; 2218IComDataObject comDataObject = dataObject; 2247IComDataObject comDataObject = dataObject; 2310IComDataObject comDataObject = dataObject; 2337IComDataObject comDataObject = dataObject; 2358Mock<IComDataObject> mockComDataObject = new(MockBehavior.Strict); 2364IComDataObject comDataObject = dataObject; 2381IComDataObject iComDataObject = dataObject; 2424IComDataObject iComDataObject = dataObject; 2461IComDataObject iComDataObject = dataObject; 2483IComDataObject iComDataObject = dataObject; 2504IComDataObject iComDataObject = dataObject; 2545IComDataObject iComDataObject = dataObject; 2584IComDataObject iComDataObject = dataObject; 2603IComDataObject iComDataObject = dataObject; 2626IComDataObject iComDataObject = dataObject; 2651IComDataObject iComDataObject = dataObject;
System\Windows\Forms\DragDropHelperTests.cs (4)
10using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; 69IComDataObject dataObject = null; 222Assert.True(DragDropHelper.IsInDragLoop(dataObject as IComDataObject)); 284if (e.Data is IComDataObject dataObject)
System\Windows\Forms\ToolStripItemTests.cs (2)
9using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; 10155yield return new object[] { new Mock<IComDataObject>(MockBehavior.Strict).Object, allowedEffects };
UIAutomationTypes (7)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\UnsafeNativeMethodsCLR.cs (7)
34using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject; 1798IComDataObject pDataObject, 1808out IComDataObject data); 1926IComDataObject pDataObject, 1936out IComDataObject data); 2694IComDataObject pDO, 2695out IComDataObject ppDORet);