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