4 instantiations of Format
System.Windows.Forms (2)
System\Windows\Forms\OLE\DataFormats.cs (2)
189s_formatList[s_formatCount] = new Format(format, (int)formatId); 238s_formatList[s_formatCount] = new Format(name, id);
System.Windows.Forms.Tests (2)
System\Windows\Forms\DataFormatsTests.cs (1)
164var format = new DataFormats.Format(name, id);
System\Windows\Forms\RichTextBoxTests.cs (1)
7842yield return new object[] { new DataFormats.Format("UnknownName", int.MaxValue), false };
18 references to Format
System.Windows.Forms (11)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (2)
1606public bool CanPaste(DataFormats.Format clipFormat) 2587public void Paste(DataFormats.Format clipFormat)
System\Windows\Forms\OLE\DataFormats.cs (8)
147private static Format[]? s_formatList; 153/// Gets a <see cref="Format"/> with the Windows Clipboard numeric ID and name for the specified format. 155public static Format GetFormat(string format) 195/// Gets a <see cref="Format"/> with the Windows Clipboard numeric ID and name for the specified ID. 197public static Format GetFormat(int id) => 204internal static unsafe Format GetFormat(ushort id) 253Format[] newList = new Format[newSize];
System\Windows\Forms\OLE\DataFormats.Format.cs (1)
20/// Initializes a new instance of the <see cref="Format"/> class and
System.Windows.Forms.Tests (7)
System\Windows\Forms\DataFormatsTests.ClipboardTests.cs (1)
25DataFormats.Format result = DataFormats.GetFormat(id);
System\Windows\Forms\DataFormatsTests.cs (4)
67DataFormats.Format result = DataFormats.GetFormat(format); 90DataFormats.Format result = DataFormats.GetFormat(format); 152DataFormats.Format result = DataFormats.GetFormat(id); 164var format = new DataFormats.Format(name, id);
System\Windows\Forms\RichTextBoxTests.cs (2)
7847public void RichTextBox_CanPaste_Invoke_ReturnsExpected(DataFormats.Format format, bool expected) 7856public void RichTextBox_CanPaste_InvokeWithHandle_ReturnsExpected(DataFormats.Format format, bool expected)