24 writes to cfFormat
PresentationCore (5)
System\Windows\dataobject.cs (5)
2276
temp.
cfFormat
= (short)DataFormats.GetDataFormat(format).Id;
2670
formatetc.
cfFormat
= (short)DataFormats.GetDataFormat(format).Id;
2842
formatetc.
cfFormat
= (short)DataFormats.GetDataFormat(format).Id;
2899
formatetc.
cfFormat
= (short)DataFormats.GetDataFormat(format).Id;
3218
formatetc.
cfFormat
= (short)DataFormats.GetDataFormat(format).Id;
System.Windows.Forms (5)
System\Windows\Forms\OLE\DataObject.FormatEnumerator.cs (2)
46
cfFormat
= (short)(ushort)DataFormats.GetFormat(format).Id,
72
cfFormat
= current.cfFormat,
System\Windows\Forms\OLE\DragDropHelper.cs (3)
163
cfFormat
= (short)PInvoke.RegisterClipboardFormat(format),
268
cfFormat
= (short)PInvoke.RegisterClipboardFormat(format),
424
cfFormat
= (short)PInvoke.RegisterClipboardFormat(PInvoke.CFSTR_DROPDESCRIPTION),
System.Windows.Forms.Tests (14)
System\Windows\Forms\ClipboardTests.cs (1)
1021
cfFormat
= (short)DataFormats.GetFormat("testFormat").Id,
System\Windows\Forms\DataObjectTests.cs (10)
1911
pFormatetc.
cfFormat
= 3;
2386
cfFormat
= cfFormat
2429
cfFormat
= cfFormat
2466
cfFormat
= cfFormat
2488
cfFormat
= cfFormat
2509
cfFormat
= (short)CLIPBOARD_FORMAT.CF_HDROP
2550
cfFormat
= (short)CLIPBOARD_FORMAT.CF_HDROP
2589
cfFormat
= (short)CLIPBOARD_FORMAT.CF_HDROP
2608
cfFormat
= (short)CLIPBOARD_FORMAT.CF_HDROP
2656
cfFormat
= cfFormat
System\Windows\Forms\DragDropFormatTests.cs (2)
27
cfFormat
= (short)PInvoke.RegisterClipboardFormat("InShellDragLoop"),
50
cfFormat
= (short)PInvoke.RegisterClipboardFormat("DragContext"),
System\Windows\Forms\DragDropHelperTests.cs (1)
94
cfFormat
= (short)PInvoke.RegisterClipboardFormat(format),
27 references to cfFormat
PresentationCore (4)
System\Windows\dataobject.cs (4)
729
if (formatetc.
cfFormat
== 0)
735
if (!GetDataPresent(DataFormats.GetDataFormat(formatetc.
cfFormat
).Name))
1414
format = DataFormats.GetDataFormat(formatetc.
cfFormat
).Name;
2483
string name = DataFormats.GetDataFormat(formatetc[0].
cfFormat
).Name;
System.Windows.Forms (1)
System\Windows\Forms\OLE\DataObject.FormatEnumerator.cs (1)
72
cfFormat = current.
cfFormat
,
System.Windows.Forms.Tests (22)
System\Windows\Forms\DataObjectTests.cs (17)
1861
if (format.
cfFormat
!= (short)CLIPBOARD_FORMAT.CF_ENHMETAFILE || format.dwAspect != DVASPECT.DVASPECT_CONTENT || format.lindex != -1)
1920
formatetc.
cfFormat
.Should().Be(3);
2013
result[0].
cfFormat
.Should().Be(0);
2084
result[0].
cfFormat
.Should().Be(unchecked((short)(ushort)(DataFormats.GetFormat(format1).Id)));
2089
result[1].
cfFormat
.Should().Be(0);
2094
result[0].
cfFormat
.Should().NotBe(0);
2099
result[1].
cfFormat
.Should().Be(0);
2130
result[0].
cfFormat
.Should().Be(0);
2177
result[0].
cfFormat
.Should().Be(2);
2187
result[0].
cfFormat
.Should().Be(unchecked((short)(ushort)(DataFormats.GetFormat("Format1").Id)));
2197
result[0].
cfFormat
.Should().Be(unchecked((short)(ushort)(DataFormats.GetFormat("Format2").Id)));
2229
result[0].
cfFormat
.Should().Be(0);
2274
result[0].
cfFormat
.Should().Be(unchecked((short)(ushort)(DataFormats.GetFormat(format1).Id)));
2279
result[1].
cfFormat
.Should().Be(0);
2284
result[0].
cfFormat
.Should().NotBe(0);
2289
result[1].
cfFormat
.Should().Be(0);
2321
result[0].
cfFormat
.Should().Be(0);
System\Windows\Forms\DragDropFormatTests.cs (5)
75
dragDropFormat = new DragDropFormat((ushort)formatEtc.
cfFormat
, (Com.STGMEDIUM)medium, copyData: false);
97
dragDropFormat = new DragDropFormat((ushort)formatEtc.
cfFormat
, (Com.STGMEDIUM)medium, copyData: false);
136
dragDropFormat = new DragDropFormat((ushort)formatEtc.
cfFormat
, (Com.STGMEDIUM)medium, copyData: false);
148
(CLIPBOARD_FORMAT)formatEtc.
cfFormat
,
155
dragDropFormat.RefreshData((ushort)formatEtc.
cfFormat
, dataRefresh, copyData: false);