21 writes to cfFormat
PresentationCore (5)
System\Windows\dataobject.cs (5)
2249cfFormat = (short)DataFormats.GetDataFormat(format).Id, 2644cfFormat = (short)DataFormats.GetDataFormat(format).Id, 2816cfFormat = (short)DataFormats.GetDataFormat(format).Id, 2874formatetc.cfFormat = (short)DataFormats.GetDataFormat(format).Id; 3194cfFormat = (short)DataFormats.GetDataFormat(format).Id,
System.Private.Windows.Core (2)
System\Private\Windows\Ole\FormatEnumerator.cs (2)
42cfFormat = (short)(ushort)getFormatId(format), 70cfFormat = current.cfFormat,
System.Windows.Forms.Tests (14)
System\Windows\Forms\ClipboardTests.cs (1)
1023cfFormat = (short)DataFormats.GetFormat("testFormat").Id,
System\Windows\Forms\DataObjectTests.cs (10)
1991pFormatetc.cfFormat = 3; 2466cfFormat = cfFormat 2509cfFormat = cfFormat 2546cfFormat = cfFormat 2568cfFormat = cfFormat 2589cfFormat = (short)CLIPBOARD_FORMAT.CF_HDROP 2630cfFormat = (short)CLIPBOARD_FORMAT.CF_HDROP 2669cfFormat = (short)CLIPBOARD_FORMAT.CF_HDROP 2688cfFormat = (short)CLIPBOARD_FORMAT.CF_HDROP 2736cfFormat = cfFormat
System\Windows\Forms\DragDropFormatTests.cs (2)
26cfFormat = (short)PInvokeCore.RegisterClipboardFormat("InShellDragLoop"), 49cfFormat = (short)PInvokeCore.RegisterClipboardFormat("DragContext"),
System\Windows\Forms\DragDropHelperTests.cs (1)
100cfFormat = (short)PInvokeCore.RegisterClipboardFormat(format),
27 references to cfFormat
PresentationCore (4)
System\Windows\dataobject.cs (4)
726if (formatetc.cfFormat == 0) 732if (!GetDataPresent(DataFormats.GetDataFormat(formatetc.cfFormat).Name)) 1411format = DataFormats.GetDataFormat(formatetc.cfFormat).Name; 2457string name = DataFormats.GetDataFormat(formatetc[0].cfFormat).Name;
System.Private.Windows.Core (1)
System\Private\Windows\Ole\FormatEnumerator.cs (1)
70cfFormat = current.cfFormat,
System.Windows.Forms.Tests (22)
System\Windows\Forms\DataObjectTests.cs (17)
1941if (format.cfFormat != (short)CLIPBOARD_FORMAT.CF_ENHMETAFILE || format.dwAspect != DVASPECT.DVASPECT_CONTENT || format.lindex != -1) 2000formatetc.cfFormat.Should().Be(3); 2093result[0].cfFormat.Should().Be(0); 2164result[0].cfFormat.Should().Be(unchecked((short)(ushort)(DataFormats.GetFormat(format1).Id))); 2169result[1].cfFormat.Should().Be(0); 2174result[0].cfFormat.Should().NotBe(0); 2179result[1].cfFormat.Should().Be(0); 2210result[0].cfFormat.Should().Be(0); 2257result[0].cfFormat.Should().Be(2); 2267result[0].cfFormat.Should().Be(unchecked((short)(ushort)(DataFormats.GetFormat("Format1").Id))); 2277result[0].cfFormat.Should().Be(unchecked((short)(ushort)(DataFormats.GetFormat("Format2").Id))); 2309result[0].cfFormat.Should().Be(0); 2354result[0].cfFormat.Should().Be(unchecked((short)(ushort)(DataFormats.GetFormat(format1).Id))); 2359result[1].cfFormat.Should().Be(0); 2364result[0].cfFormat.Should().NotBe(0); 2369result[1].cfFormat.Should().Be(0); 2401result[0].cfFormat.Should().Be(0);
System\Windows\Forms\DragDropFormatTests.cs (5)
74dragDropFormat = new DragDropFormat((ushort)formatEtc.cfFormat, (Com.STGMEDIUM)medium, copyData: false); 96dragDropFormat = new DragDropFormat((ushort)formatEtc.cfFormat, (Com.STGMEDIUM)medium, copyData: false); 135dragDropFormat = new DragDropFormat((ushort)formatEtc.cfFormat, (Com.STGMEDIUM)medium, copyData: false); 147(CLIPBOARD_FORMAT)formatEtc.cfFormat, 154dragDropFormat.RefreshData((ushort)formatEtc.cfFormat, dataRefresh, copyData: false);