1 write to Id
System.Windows.Forms (1)
System\Windows\Forms\OLE\DataFormats.Format.cs (1)
26Id = id;
20 references to Id
System.Windows.Forms (8)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
1607=> PInvokeCore.SendMessage(this, PInvokeCore.EM_CANPASTE, (WPARAM)clipFormat.Id) != 0; 2589PInvokeCore.SendMessage(this, PInvokeCore.EM_PASTESPECIAL, (WPARAM)clipFormat.Id);
System\Windows\Forms\OLE\DataFormats.cs (1)
212if (s_formatList[n].Id == id)
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (4)
249cfFormat = (ushort)DataFormats.GetFormat(format).Id, 296cfFormat = (ushort)DataFormats.GetFormat(format).Id, 356cfFormat = (ushort)DataFormats.GetFormat(format).Id, 517cfFormat = (ushort)(DataFormats.GetFormat(format).Id),
System\Windows\Forms\OLE\DataObject.FormatEnumerator.cs (1)
46cfFormat = (short)(ushort)DataFormats.GetFormat(format).Id,
System.Windows.Forms.Tests (12)
System\Windows\Forms\DataFormatsTests.ClipboardTests.cs (1)
28Assert.Equal(id & 0xFFFF, result.Id);
System\Windows\Forms\DataFormatsTests.cs (5)
70Assert.Equal(expectedId, result.Id); 98Assert.True(result.Id >= 0xC000); 99Assert.True(result.Id < 0xFFFF); 102Assert.Same(result, DataFormats.GetFormat(result.Id)); 155Assert.Equal(id & 0xFFFF, result.Id);
System\Windows\Forms\DataObjectTests.cs (6)
1802result[0].cfFormat.Should().Be(unchecked((short)(ushort)(DataFormats.GetFormat(format1).Id))); 1905result[0].cfFormat.Should().Be(unchecked((short)(ushort)(DataFormats.GetFormat("Format1").Id))); 1915result[0].cfFormat.Should().Be(unchecked((short)(ushort)(DataFormats.GetFormat("Format2").Id))); 1992result[0].cfFormat.Should().Be(unchecked((short)(ushort)(DataFormats.GetFormat(format1).Id))); 2089{ TextDataFormat.Rtf, (short)DataFormats.GetFormat(DataFormats.Rtf).Id }, 2090{ TextDataFormat.Html, (short)DataFormats.GetFormat(DataFormats.Html).Id }