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