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