24 references to Rtf
System.Windows.Forms (1)
System\Windows\Forms\OLE\Clipboard.cs (1)
347
TextDataFormat.Rtf => DataFormats.
Rtf
,
System.Windows.Forms.Tests (23)
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)
125
dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.
Rtf
);
185
dataObject.ContainsText(TextDataFormat.Rtf).Should().Be(format == DataFormats.
Rtf
);
System\Windows\Forms\DataObjectTests.cs (18)
39
DataFormats.
Rtf
,
163
theoryData.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" },
1386
dataObject.GetData(DataFormats.
Rtf
, autoConvert: true).Should().BeNull();
1387
dataObject.GetData(DataFormats.
Rtf
, autoConvert: false).Should().BeNull();
1400
dataObject.GetDataPresent(DataFormats.
Rtf
, autoConvert: true).Should().BeFalse();
1401
dataObject.GetDataPresent(DataFormats.
Rtf
, autoConvert: false).Should().BeFalse();
1465
dataObject.GetData(DataFormats.
Rtf
, autoConvert: true).Should().Be(expectedRtfText);
1466
dataObject.GetData(DataFormats.
Rtf
, autoConvert: false).Should().Be(expectedRtfText);
1479
dataObject.GetDataPresent(DataFormats.
Rtf
, autoConvert: true).Should().Be(expectedRtfText is not null);
1480
dataObject.GetDataPresent(DataFormats.
Rtf
, autoConvert: false).Should().Be(expectedRtfText is not null);
1494
theoryData.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)
78
richTextBox1.Paste(DataFormats.GetFormat(DataFormats.
Rtf
));