51 references to UnicodeText
Microsoft.VisualBasic.Tests (7)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (7)
44
clipboard.SetData(DataFormats.
UnicodeText
, data);
45
clipboard.ContainsData(DataFormats.
UnicodeText
).Should().Be(System.Windows.Forms.Clipboard.ContainsData(DataFormats.
UnicodeText
));
46
clipboard.GetData(DataFormats.
UnicodeText
).Should().Be(System.Windows.Forms.Clipboard.GetData(DataFormats.
UnicodeText
));
55
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)
346
TextDataFormat.UnicodeText => DataFormats.
UnicodeText
,
350
_ => DataFormats.
UnicodeText
,
System.Windows.Forms.Tests (35)
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\DataObjectTests.ClipboardTests.cs (6)
122
dataObject.ContainsText().Should().Be(format == DataFormats.
UnicodeText
);
123
dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.
UnicodeText
);
124
dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.
UnicodeText
);
182
dataObject.ContainsText().Should().Be(format == DataFormats.
UnicodeText
);
183
dataObject.ContainsText(TextDataFormat.Text).Should().Be(format == DataFormats.
UnicodeText
);
184
dataObject.ContainsText(TextDataFormat.UnicodeText).Should().Be(format == DataFormats.
UnicodeText
);
System\Windows\Forms\DataObjectTests.cs (27)
41
DataFormats.
UnicodeText
,
161
theoryData.Add(TextDataFormat.Text, DataFormats.
UnicodeText
, result);
162
theoryData.Add(TextDataFormat.UnicodeText, DataFormats.
UnicodeText
, result);
720
dataObject.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" },
1380
dataObject.GetData(DataFormats.
UnicodeText
, autoConvert: true).Should().BeSameAs(textData);
1381
dataObject.GetData(DataFormats.
UnicodeText
, autoConvert: false).Should().BeSameAs(textData);
1394
dataObject.GetDataPresent(DataFormats.
UnicodeText
, autoConvert: true).Should().BeTrue();
1395
dataObject.GetDataPresent(DataFormats.
UnicodeText
, autoConvert: false).Should().BeTrue();
1429
.Setup(o => o.SetData(DataFormats.
UnicodeText
, false, textData))
1433
mockDataObject.Verify(o => o.SetData(DataFormats.
UnicodeText
, false, textData), Times.Once());
1459
dataObject.GetData(DataFormats.
UnicodeText
, autoConvert: true).Should().Be(expectedUnicodeText);
1460
dataObject.GetData(DataFormats.
UnicodeText
, autoConvert: false).Should().Be(expectedUnicodeText);
1473
dataObject.GetDataPresent(DataFormats.
UnicodeText
, autoConvert: true).Should().Be(expectedUnicodeText is not null);
1474
dataObject.GetDataPresent(DataFormats.
UnicodeText
, autoConvert: false).Should().Be(expectedUnicodeText is not null);
1492
theoryData.Add(textData, TextDataFormat.Text, DataFormats.
UnicodeText
);
1493
theoryData.Add(textData, TextDataFormat.UnicodeText, DataFormats.
UnicodeText
);
1763
{ DataFormats.
UnicodeText
, TYMED.TYMED_HGLOBAL },
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)