28 references to Text
System.Windows.Forms (5)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
7134DataFormats.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)
479TextDataFormat.Text => DataFormats.Text,
System.Windows.Forms.Tests (22)
System\Windows\Forms\ClipboardTests.cs (5)
661dataObject.GetData(DataFormats.Text).Should().Be(testString); 664Clipboard.ContainsData(DataFormats.Text).Should().BeTrue(); 1187Clipboard.ContainsData(DataFormats.Text).Should().BeTrue(); 1213Clipboard.ContainsData(DataFormats.Text).Should().BeTrue(); 1242Clipboard.ContainsData(DataFormats.Text).Should().BeTrue();
System\Windows\Forms\DataFormatsTests.cs (2)
32yield return new object[] { DataFormats.Text, "Text" }; 59yield return new object[] { DataFormats.Text, "Text", 1 };
System\Windows\Forms\DataObjectExtensionsTests.cs (2)
18Action tryGetData2 = () => DataObjectExtensions.TryGetData<string>(dataObject: null!, DataFormats.Text, out _); 45Action tryGetData = () => dataObject.TryGetData<string>(DataFormats.Text, out _);
System\Windows\Forms\DataObjectTests.cs (10)
48DataFormats.Text, 1744dataObject.GetData(DataFormats.Text, autoConvert: true).Should().BeSameAs(textData); 1745dataObject.GetData(DataFormats.Text, autoConvert: false).Should().BeNull(); 1758dataObject.GetDataPresent(DataFormats.Text, autoConvert: true).Should().BeFalse(); 1759dataObject.GetDataPresent(DataFormats.Text, autoConvert: false).Should().BeFalse(); 1823dataObject.GetData(DataFormats.Text, autoConvert: true).Should().Be(expectedUnicodeText); 1824dataObject.GetData(DataFormats.Text, autoConvert: false).Should().BeNull(); 1837dataObject.GetDataPresent(DataFormats.Text, autoConvert: true).Should().BeFalse(); 1838dataObject.GetDataPresent(DataFormats.Text, autoConvert: false).Should().BeFalse(); 2123{ DataFormats.Text, TYMED.TYMED_HGLOBAL },
System\Windows\Forms\RichTextBoxTests.ClipboardTests.cs (2)
48richTextBox1.Paste(DataFormats.GetFormat(DataFormats.Text)); 60richTextBox1.Paste(DataFormats.GetFormat(DataFormats.Text));
System\Windows\Forms\RichTextBoxTests.cs (1)
7891Assert.Equal(expected, control.CanPaste(DataFormats.GetFormat(DataFormats.Text)));
System.Windows.Forms.TestUtilities (1)
Data\DataObjectTestHelpers.cs (1)
17DataFormats.Text,