24 references to Text
System.Windows.Forms (5)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
7137DataFormats.Text,
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1355string.Equals(format, DataFormats.Text, StringComparison.OrdinalIgnoreCase) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
173string.Equals(format, DataFormats.Text, StringComparison.OrdinalIgnoreCase) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
145string.Equals(format, DataFormats.Text, StringComparison.OrdinalIgnoreCase) ||
System\Windows\Forms\OLE\Clipboard.cs (1)
622TextDataFormat.Text => DataFormats.Text,
System.Windows.Forms.Tests (18)
System\Windows\Forms\ClipboardTests.cs (1)
666dataObject.GetData(DataFormats.Text).Should().Be(testString);
System\Windows\Forms\DataFormatsTests.cs (2)
30yield return new object[] { DataFormats.Text, "Text" }; 57yield return new object[] { DataFormats.Text, "Text", 1 };
System\Windows\Forms\DataObjectExtensionsTests.cs (2)
20Action tryGetData2 = () => DataObjectExtensions.TryGetData<string>(dataObject: null!, DataFormats.Text, out _); 47Action tryGetData = () => dataObject.TryGetData<string>(DataFormats.Text, out _);
System\Windows\Forms\DataObjectTests.cs (10)
48DataFormats.Text, 1664dataObject.GetData(DataFormats.Text, autoConvert: true).Should().BeSameAs(textData); 1665dataObject.GetData(DataFormats.Text, autoConvert: false).Should().BeNull(); 1678dataObject.GetDataPresent(DataFormats.Text, autoConvert: true).Should().BeFalse(); 1679dataObject.GetDataPresent(DataFormats.Text, autoConvert: false).Should().BeFalse(); 1743dataObject.GetData(DataFormats.Text, autoConvert: true).Should().Be(expectedUnicodeText); 1744dataObject.GetData(DataFormats.Text, autoConvert: false).Should().BeNull(); 1757dataObject.GetDataPresent(DataFormats.Text, autoConvert: true).Should().BeFalse(); 1758dataObject.GetDataPresent(DataFormats.Text, autoConvert: false).Should().BeFalse(); 2043{ DataFormats.Text, TYMED.TYMED_HGLOBAL },
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (2)
46richTextBox1.Paste(DataFormats.GetFormat(DataFormats.Text)); 58richTextBox1.Paste(DataFormats.GetFormat(DataFormats.Text));
System\Windows\Forms\RichTextBoxTests.cs (1)
7889Assert.Equal(expected, control.CanPaste(DataFormats.GetFormat(DataFormats.Text)));
System.Windows.Forms.TestUtilities (1)
DataObjectTestHelpers.cs (1)
16DataFormats.Text,