4 instantiations of Format
System.Windows.Forms (2)
System\Windows\Forms\OLE\DataFormats.cs (2)
189
s_formatList[s_formatCount] = new
Format
(format, (int)formatId);
238
s_formatList[s_formatCount] = new
Format
(name, id);
System.Windows.Forms.Tests (2)
System\Windows\Forms\DataFormatsTests.cs (1)
164
var format = new DataFormats.
Format
(name, id);
System\Windows\Forms\RichTextBoxTests.cs (1)
7842
yield 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)
1606
public bool CanPaste(DataFormats.
Format
clipFormat)
2587
public void Paste(DataFormats.
Format
clipFormat)
System\Windows\Forms\OLE\DataFormats.cs (8)
147
private static
Format
[]? s_formatList;
153
/// Gets a <see cref="
Format
"/> with the Windows Clipboard numeric ID and name for the specified format.
155
public static
Format
GetFormat(string format)
195
/// Gets a <see cref="
Format
"/> with the Windows Clipboard numeric ID and name for the specified ID.
197
public static
Format
GetFormat(int id) =>
204
internal static unsafe
Format
GetFormat(ushort id)
253
Format
[] 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)
25
DataFormats.
Format
result = DataFormats.GetFormat(id);
System\Windows\Forms\DataFormatsTests.cs (4)
67
DataFormats.
Format
result = DataFormats.GetFormat(format);
90
DataFormats.
Format
result = DataFormats.GetFormat(format);
152
DataFormats.
Format
result = DataFormats.GetFormat(id);
164
var
format = new DataFormats.Format(name, id);
System\Windows\Forms\RichTextBoxTests.cs (2)
7847
public void RichTextBox_CanPaste_Invoke_ReturnsExpected(DataFormats.
Format
format, bool expected)
7856
public void RichTextBox_CanPaste_InvokeWithHandle_ReturnsExpected(DataFormats.
Format
format, bool expected)