26 references to GetFormat
System.Windows.Forms (5)
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (4)
302
cfFormat = (ushort)DataFormats.
GetFormat
(format).Id,
362
cfFormat = (ushort)DataFormats.
GetFormat
(format).Id,
422
cfFormat = (ushort)DataFormats.
GetFormat
(format).Id,
657
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 (21)
System\Windows\Forms\ClipboardTests.cs (1)
1021
cfFormat = (short)DataFormats.
GetFormat
("testFormat").Id,
System\Windows\Forms\DataFormatsTests.cs (9)
67
DataFormats.Format result = DataFormats.
GetFormat
(format);
68
Assert.Same(result, DataFormats.
GetFormat
(format.ToLowerInvariant()));
73
Assert.Same(result, DataFormats.
GetFormat
(format));
90
DataFormats.Format result = DataFormats.
GetFormat
(format);
91
Assert.Same(result, DataFormats.
GetFormat
(format));
92
Assert.Same(result, DataFormats.
GetFormat
(format.ToLowerInvariant()));
108
Assert.Throws<ArgumentException>("format", () => DataFormats.
GetFormat
(""));
109
Assert.Throws<ArgumentNullException>("format", () => DataFormats.
GetFormat
(null));
121
Assert.Throws<Win32Exception>(() => DataFormats.
GetFormat
(format));
System\Windows\Forms\DataObjectTests.cs (6)
2084
result[0].cfFormat.Should().Be(unchecked((short)(ushort)(DataFormats.
GetFormat
(format1).Id)));
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)));
2274
result[0].cfFormat.Should().Be(unchecked((short)(ushort)(DataFormats.
GetFormat
(format1).Id)));
2371
{ TextDataFormat.Rtf, (short)DataFormats.
GetFormat
(DataFormats.Rtf).Id },
2372
{ TextDataFormat.Html, (short)DataFormats.
GetFormat
(DataFormats.Html).Id }
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (3)
46
richTextBox1.Paste(DataFormats.
GetFormat
(DataFormats.Text));
58
richTextBox1.Paste(DataFormats.
GetFormat
(DataFormats.Text));
79
richTextBox1.Paste(DataFormats.
GetFormat
(DataFormats.Rtf));
System\Windows\Forms\RichTextBoxTests.cs (2)
7841
yield return new object[] { DataFormats.
GetFormat
(DataFormats.Palette), false };
7889
Assert.Equal(expected, control.CanPaste(DataFormats.
GetFormat
(DataFormats.Text)));