51 references to UnicodeText
Microsoft.VisualBasic.Tests (7)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (7)
44clipboard.SetData(DataFormats.UnicodeText, data); 45clipboard.ContainsData(DataFormats.UnicodeText).Should().Be(System.Windows.Forms.Clipboard.ContainsData(DataFormats.UnicodeText)); 46clipboard.GetData(DataFormats.UnicodeText).Should().Be(System.Windows.Forms.Clipboard.GetData(DataFormats.UnicodeText)); 55clipboard.GetDataObject().GetData(DataFormats.UnicodeText).Should().Be(System.Windows.Forms.Clipboard.GetDataObject()?.GetData(DataFormats.UnicodeText));
System.Windows.Forms (6)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
7138DataFormats.UnicodeText,
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1356string.Equals(format, DataFormats.UnicodeText, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
174string.Equals(format, DataFormats.UnicodeText, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
146string.Equals(format, DataFormats.UnicodeText, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\OLE\Clipboard.cs (2)
346TextDataFormat.UnicodeText => DataFormats.UnicodeText, 350_ => DataFormats.UnicodeText,
System.Windows.Forms.Tests (35)
System\Windows\Forms\DataFormatsTests.cs (2)
32yield return new object[] { DataFormats.UnicodeText, "UnicodeText" }; 59yield return new object[] { DataFormats.UnicodeText, "UnicodeText", 13 };
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (6)
122dataObject.ContainsText().Should().Be(format == DataFormats.UnicodeText); 123dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.UnicodeText); 124dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.UnicodeText); 182dataObject.ContainsText().Should().Be(format == DataFormats.UnicodeText); 183dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.UnicodeText); 184dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.UnicodeText);
System\Windows\Forms\DataObjectTests.cs (27)
41DataFormats.UnicodeText, 161theoryData.Add(TextDataFormat.Text, DataFormats.UnicodeText, result); 162theoryData.Add(TextDataFormat.UnicodeText, DataFormats.UnicodeText, result); 720dataObject.SetData(DataFormats.UnicodeText, result); 750{ TextDataFormat.Text, DataFormats.UnicodeText, null, string.Empty }, 751{ TextDataFormat.Text, DataFormats.UnicodeText, new(), string.Empty }, 752{ TextDataFormat.Text, DataFormats.UnicodeText, string.Empty, string.Empty }, 753{ TextDataFormat.Text, DataFormats.UnicodeText, " ", " " }, 754{ TextDataFormat.Text, DataFormats.UnicodeText, "a", "a" }, 756{ TextDataFormat.UnicodeText, DataFormats.UnicodeText, null, string.Empty }, 757{ TextDataFormat.UnicodeText, DataFormats.UnicodeText, new(), string.Empty }, 758{ TextDataFormat.UnicodeText, DataFormats.UnicodeText, string.Empty, string.Empty }, 759{ TextDataFormat.UnicodeText, DataFormats.UnicodeText, " ", " " }, 760{ TextDataFormat.UnicodeText, DataFormats.UnicodeText, "a", "a" }, 1380dataObject.GetData(DataFormats.UnicodeText, autoConvert: true).Should().BeSameAs(textData); 1381dataObject.GetData(DataFormats.UnicodeText, autoConvert: false).Should().BeSameAs(textData); 1394dataObject.GetDataPresent(DataFormats.UnicodeText, autoConvert: true).Should().BeTrue(); 1395dataObject.GetDataPresent(DataFormats.UnicodeText, autoConvert: false).Should().BeTrue(); 1429.Setup(o => o.SetData(DataFormats.UnicodeText, false, textData)) 1433mockDataObject.Verify(o => o.SetData(DataFormats.UnicodeText, false, textData), Times.Once()); 1459dataObject.GetData(DataFormats.UnicodeText, autoConvert: true).Should().Be(expectedUnicodeText); 1460dataObject.GetData(DataFormats.UnicodeText, autoConvert: false).Should().Be(expectedUnicodeText); 1473dataObject.GetDataPresent(DataFormats.UnicodeText, autoConvert: true).Should().Be(expectedUnicodeText is not null); 1474dataObject.GetDataPresent(DataFormats.UnicodeText, autoConvert: false).Should().Be(expectedUnicodeText is not null); 1492theoryData.Add(textData, TextDataFormat.Text, DataFormats.UnicodeText); 1493theoryData.Add(textData, TextDataFormat.UnicodeText, DataFormats.UnicodeText); 1763{ DataFormats.UnicodeText, TYMED.TYMED_HGLOBAL },
TrimTest (3)
Form1.cs (3)
19if (e.Data is { } dataObject && dataObject.GetDataPresent(DataFormats.UnicodeText)) 27if (e.Data is { } dataObject && dataObject.GetDataPresent(DataFormats.UnicodeText)) 35if (e.Data is { } dataObject && dataObject.GetData(DataFormats.UnicodeText) is string text)