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