27 references to Rtf
System.Windows.Forms (1)
System\Windows\Forms\OLE\Clipboard.cs (1)
624
TextDataFormat.Rtf => DataFormats.
Rtf
,
System.Windows.Forms.Tests (25)
System\Windows\Forms\DataFormatsTests.cs (2)
26
yield return new object[] { DataFormats.
Rtf
, "Rich Text Format" };
80
yield return new object[] { DataFormats.
Rtf
, "Rich Text Format" };
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (2)
126
dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.
Rtf
);
186
dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.
Rtf
);
System\Windows\Forms\DataObjectTests.cs (20)
47
DataFormats.
Rtf
,
171
theoryData.Add(TextDataFormat.Rtf, DataFormats.
Rtf
, result);
908
{ TextDataFormat.Rtf, DataFormats.
Rtf
, null, string.Empty },
909
{ TextDataFormat.Rtf, DataFormats.
Rtf
, new(), string.Empty },
910
{ TextDataFormat.Rtf, DataFormats.
Rtf
, string.Empty, string.Empty },
911
{ TextDataFormat.Rtf, DataFormats.
Rtf
, " ", " " },
912
{ TextDataFormat.Rtf, DataFormats.
Rtf
, "a", "a" },
1207
dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.
Rtf
);
1356
dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.
Rtf
);
1668
dataObject.GetData(DataFormats.
Rtf
, autoConvert: true).Should().BeNull();
1669
dataObject.GetData(DataFormats.
Rtf
, autoConvert: false).Should().BeNull();
1682
dataObject.GetDataPresent(DataFormats.
Rtf
, autoConvert: true).Should().BeFalse();
1683
dataObject.GetDataPresent(DataFormats.
Rtf
, autoConvert: false).Should().BeFalse();
1747
dataObject.GetData(DataFormats.
Rtf
, autoConvert: true).Should().Be(expectedRtfText);
1748
dataObject.GetData(DataFormats.
Rtf
, autoConvert: false).Should().Be(expectedRtfText);
1761
dataObject.GetDataPresent(DataFormats.
Rtf
, autoConvert: true).Should().Be(expectedRtfText is not null);
1762
dataObject.GetDataPresent(DataFormats.
Rtf
, autoConvert: false).Should().Be(expectedRtfText is not null);
1776
theoryData.Add(textData, TextDataFormat.Rtf, DataFormats.
Rtf
);
2039
{ DataFormats.
Rtf
, TYMED.TYMED_HGLOBAL },
2371
{ TextDataFormat.Rtf, (short)DataFormats.GetFormat(DataFormats.
Rtf
).Id },
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (1)
79
richTextBox1.Paste(DataFormats.GetFormat(DataFormats.
Rtf
));
System.Windows.Forms.TestUtilities (1)
DataObjectTestHelpers.cs (1)
19
DataFormats.
Rtf
,