24 references to Rtf
System.Windows.Forms (1)
System\Windows\Forms\OLE\Clipboard.cs (1)
347TextDataFormat.Rtf => DataFormats.Rtf,
System.Windows.Forms.Tests (23)
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)
125dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.Rtf); 185dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.Rtf);
System\Windows\Forms\DataObjectTests.cs (18)
39DataFormats.Rtf, 163theoryData.Add(TextDataFormat.Rtf, DataFormats.Rtf, result); 762{ TextDataFormat.Rtf, DataFormats.Rtf, null, string.Empty }, 763{ TextDataFormat.Rtf, DataFormats.Rtf, new(), string.Empty }, 764{ TextDataFormat.Rtf, DataFormats.Rtf, string.Empty, string.Empty }, 765{ TextDataFormat.Rtf, DataFormats.Rtf, " ", " " }, 766{ TextDataFormat.Rtf, DataFormats.Rtf, "a", "a" }, 1386dataObject.GetData(DataFormats.Rtf, autoConvert: true).Should().BeNull(); 1387dataObject.GetData(DataFormats.Rtf, autoConvert: false).Should().BeNull(); 1400dataObject.GetDataPresent(DataFormats.Rtf, autoConvert: true).Should().BeFalse(); 1401dataObject.GetDataPresent(DataFormats.Rtf, autoConvert: false).Should().BeFalse(); 1465dataObject.GetData(DataFormats.Rtf, autoConvert: true).Should().Be(expectedRtfText); 1466dataObject.GetData(DataFormats.Rtf, autoConvert: false).Should().Be(expectedRtfText); 1479dataObject.GetDataPresent(DataFormats.Rtf, autoConvert: true).Should().Be(expectedRtfText is not null); 1480dataObject.GetDataPresent(DataFormats.Rtf, autoConvert: false).Should().Be(expectedRtfText is not null); 1494theoryData.Add(textData, TextDataFormat.Rtf, DataFormats.Rtf); 1757{ DataFormats.Rtf, TYMED.TYMED_HGLOBAL }, 2089{ TextDataFormat.Rtf, (short)DataFormats.GetFormat(DataFormats.Rtf).Id },
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (1)
78richTextBox1.Paste(DataFormats.GetFormat(DataFormats.Rtf));