27 references to Rtf
System.Windows.Forms (1)
System\Windows\Forms\OLE\Clipboard.cs (1)
624TextDataFormat.Rtf => DataFormats.Rtf,
System.Windows.Forms.Tests (25)
System\Windows\Forms\DataFormatsTests.cs (2)
26yield return new object[] { DataFormats.Rtf, "Rich Text Format" }; 80yield return new object[] { DataFormats.Rtf, "Rich Text Format" };
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (2)
126dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.Rtf); 186dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.Rtf);
System\Windows\Forms\DataObjectTests.cs (20)
47DataFormats.Rtf, 171theoryData.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" }, 1207dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.Rtf); 1356dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.Rtf); 1668dataObject.GetData(DataFormats.Rtf, autoConvert: true).Should().BeNull(); 1669dataObject.GetData(DataFormats.Rtf, autoConvert: false).Should().BeNull(); 1682dataObject.GetDataPresent(DataFormats.Rtf, autoConvert: true).Should().BeFalse(); 1683dataObject.GetDataPresent(DataFormats.Rtf, autoConvert: false).Should().BeFalse(); 1747dataObject.GetData(DataFormats.Rtf, autoConvert: true).Should().Be(expectedRtfText); 1748dataObject.GetData(DataFormats.Rtf, autoConvert: false).Should().Be(expectedRtfText); 1761dataObject.GetDataPresent(DataFormats.Rtf, autoConvert: true).Should().Be(expectedRtfText is not null); 1762dataObject.GetDataPresent(DataFormats.Rtf, autoConvert: false).Should().Be(expectedRtfText is not null); 1776theoryData.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)
79richTextBox1.Paste(DataFormats.GetFormat(DataFormats.Rtf));
System.Windows.Forms.TestUtilities (1)
DataObjectTestHelpers.cs (1)
19DataFormats.Rtf,