60 references to UnicodeText
Microsoft.VisualBasic.Tests (7)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (7)
47clipboard.SetData(DataFormats.UnicodeText, data); 48clipboard.ContainsData(DataFormats.UnicodeText).Should().Be(System.Windows.Forms.Clipboard.ContainsData(DataFormats.UnicodeText)); 49clipboard.GetData(DataFormats.UnicodeText).Should().Be(System.Windows.Forms.Clipboard.GetData(DataFormats.UnicodeText)); 58clipboard.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)
623TextDataFormat.UnicodeText => DataFormats.UnicodeText, 627_ => DataFormats.UnicodeText,
System.Windows.Forms.Tests (43)
System\Windows\Forms\DataFormatsTests.cs (2)
32yield return new object[] { DataFormats.UnicodeText, "UnicodeText" }; 59yield return new object[] { DataFormats.UnicodeText, "UnicodeText", 13 };
System\Windows\Forms\DataObjectExtensionsTests.cs (2)
26Action tryGetData5 = () => DataObjectExtensions.TryGetData<string>(dataObject: null!, DataFormats.UnicodeText, Resolver, autoConvert: true, out _); 67Action tryGetData = () => dataObject.TryGetData<string>(DataFormats.UnicodeText, Resolver, autoConvert, out _);
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (6)
123dataObject.ContainsText().Should().Be(format == DataFormats.UnicodeText); 124dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.UnicodeText); 125dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.UnicodeText); 183dataObject.ContainsText().Should().Be(format == DataFormats.UnicodeText); 184dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.UnicodeText); 185dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.UnicodeText);
System\Windows\Forms\DataObjectTests.cs (33)
49DataFormats.UnicodeText, 169theoryData.Add(TextDataFormat.Text, DataFormats.UnicodeText, result); 170theoryData.Add(TextDataFormat.UnicodeText, DataFormats.UnicodeText, result); 866dataObject.SetData(DataFormats.UnicodeText, result); 896{ TextDataFormat.Text, DataFormats.UnicodeText, null, string.Empty }, 897{ TextDataFormat.Text, DataFormats.UnicodeText, new(), string.Empty }, 898{ TextDataFormat.Text, DataFormats.UnicodeText, string.Empty, string.Empty }, 899{ TextDataFormat.Text, DataFormats.UnicodeText, " ", " " }, 900{ TextDataFormat.Text, DataFormats.UnicodeText, "a", "a" }, 902{ TextDataFormat.UnicodeText, DataFormats.UnicodeText, null, string.Empty }, 903{ TextDataFormat.UnicodeText, DataFormats.UnicodeText, new(), string.Empty }, 904{ TextDataFormat.UnicodeText, DataFormats.UnicodeText, string.Empty, string.Empty }, 905{ TextDataFormat.UnicodeText, DataFormats.UnicodeText, " ", " " }, 906{ TextDataFormat.UnicodeText, DataFormats.UnicodeText, "a", "a" }, 1204dataObject.ContainsText().Should().Be(format == DataFormats.UnicodeText); 1205dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.UnicodeText); 1206dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.UnicodeText); 1353dataObject.ContainsText().Should().Be(format == DataFormats.UnicodeText); 1354dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.UnicodeText); 1355dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.UnicodeText); 1662dataObject.GetData(DataFormats.UnicodeText, autoConvert: true).Should().BeSameAs(textData); 1663dataObject.GetData(DataFormats.UnicodeText, autoConvert: false).Should().BeSameAs(textData); 1676dataObject.GetDataPresent(DataFormats.UnicodeText, autoConvert: true).Should().BeTrue(); 1677dataObject.GetDataPresent(DataFormats.UnicodeText, autoConvert: false).Should().BeTrue(); 1711.Setup(o => o.SetData(DataFormats.UnicodeText, false, textData)) 1715mockDataObject.Verify(o => o.SetData(DataFormats.UnicodeText, false, textData), Times.Once()); 1741dataObject.GetData(DataFormats.UnicodeText, autoConvert: true).Should().Be(expectedUnicodeText); 1742dataObject.GetData(DataFormats.UnicodeText, autoConvert: false).Should().Be(expectedUnicodeText); 1755dataObject.GetDataPresent(DataFormats.UnicodeText, autoConvert: true).Should().Be(expectedUnicodeText is not null); 1756dataObject.GetDataPresent(DataFormats.UnicodeText, autoConvert: false).Should().Be(expectedUnicodeText is not null); 1774theoryData.Add(textData, TextDataFormat.Text, DataFormats.UnicodeText); 1775theoryData.Add(textData, TextDataFormat.UnicodeText, DataFormats.UnicodeText); 2045{ DataFormats.UnicodeText, TYMED.TYMED_HGLOBAL },
System.Windows.Forms.TestUtilities (1)
DataObjectTestHelpers.cs (1)
17DataFormats.UnicodeText,
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)