60 references to UnicodeText
Microsoft.VisualBasic.Tests (7)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (7)
47
clipboard.SetData(DataFormats.
UnicodeText
, data);
48
clipboard.ContainsData(DataFormats.
UnicodeText
).Should().Be(System.Windows.Forms.Clipboard.ContainsData(DataFormats.
UnicodeText
));
49
clipboard.GetData(DataFormats.
UnicodeText
).Should().Be(System.Windows.Forms.Clipboard.GetData(DataFormats.
UnicodeText
));
58
clipboard.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)
7138
DataFormats.
UnicodeText
,
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1356
string.Equals(format, DataFormats.
UnicodeText
, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
174
string.Equals(format, DataFormats.
UnicodeText
, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
146
string.Equals(format, DataFormats.
UnicodeText
, StringComparison.OrdinalIgnoreCase))
System\Windows\Forms\OLE\Clipboard.cs (2)
623
TextDataFormat.UnicodeText => DataFormats.
UnicodeText
,
627
_ => DataFormats.
UnicodeText
,
System.Windows.Forms.Tests (43)
System\Windows\Forms\DataFormatsTests.cs (2)
32
yield return new object[] { DataFormats.
UnicodeText
, "UnicodeText" };
59
yield return new object[] { DataFormats.
UnicodeText
, "UnicodeText", 13 };
System\Windows\Forms\DataObjectExtensionsTests.cs (2)
26
Action tryGetData5 = () => DataObjectExtensions.TryGetData<string>(dataObject: null!, DataFormats.
UnicodeText
, Resolver, autoConvert: true, out _);
67
Action tryGetData = () => dataObject.TryGetData<string>(DataFormats.
UnicodeText
, Resolver, autoConvert, out _);
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (6)
123
dataObject.ContainsText().Should().Be(format == DataFormats.
UnicodeText
);
124
dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.
UnicodeText
);
125
dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.
UnicodeText
);
183
dataObject.ContainsText().Should().Be(format == DataFormats.
UnicodeText
);
184
dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.
UnicodeText
);
185
dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.
UnicodeText
);
System\Windows\Forms\DataObjectTests.cs (33)
49
DataFormats.
UnicodeText
,
169
theoryData.Add(TextDataFormat.Text, DataFormats.
UnicodeText
, result);
170
theoryData.Add(TextDataFormat.UnicodeText, DataFormats.
UnicodeText
, result);
866
dataObject.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" },
1204
dataObject.ContainsText().Should().Be(format == DataFormats.
UnicodeText
);
1205
dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.
UnicodeText
);
1206
dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.
UnicodeText
);
1353
dataObject.ContainsText().Should().Be(format == DataFormats.
UnicodeText
);
1354
dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.
UnicodeText
);
1355
dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.
UnicodeText
);
1662
dataObject.GetData(DataFormats.
UnicodeText
, autoConvert: true).Should().BeSameAs(textData);
1663
dataObject.GetData(DataFormats.
UnicodeText
, autoConvert: false).Should().BeSameAs(textData);
1676
dataObject.GetDataPresent(DataFormats.
UnicodeText
, autoConvert: true).Should().BeTrue();
1677
dataObject.GetDataPresent(DataFormats.
UnicodeText
, autoConvert: false).Should().BeTrue();
1711
.Setup(o => o.SetData(DataFormats.
UnicodeText
, false, textData))
1715
mockDataObject.Verify(o => o.SetData(DataFormats.
UnicodeText
, false, textData), Times.Once());
1741
dataObject.GetData(DataFormats.
UnicodeText
, autoConvert: true).Should().Be(expectedUnicodeText);
1742
dataObject.GetData(DataFormats.
UnicodeText
, autoConvert: false).Should().Be(expectedUnicodeText);
1755
dataObject.GetDataPresent(DataFormats.
UnicodeText
, autoConvert: true).Should().Be(expectedUnicodeText is not null);
1756
dataObject.GetDataPresent(DataFormats.
UnicodeText
, autoConvert: false).Should().Be(expectedUnicodeText is not null);
1774
theoryData.Add(textData, TextDataFormat.Text, DataFormats.
UnicodeText
);
1775
theoryData.Add(textData, TextDataFormat.UnicodeText, DataFormats.
UnicodeText
);
2045
{ DataFormats.
UnicodeText
, TYMED.TYMED_HGLOBAL },
System.Windows.Forms.TestUtilities (1)
DataObjectTestHelpers.cs (1)
17
DataFormats.
UnicodeText
,
TrimTest (3)
Form1.cs (3)
19
if (e.Data is { } dataObject && dataObject.GetDataPresent(DataFormats.
UnicodeText
))
27
if (e.Data is { } dataObject && dataObject.GetDataPresent(DataFormats.
UnicodeText
))
35
if (e.Data is { } dataObject && dataObject.GetData(DataFormats.
UnicodeText
) is string text)