34 references to UnicodeText
Microsoft.VisualBasic.Tests (4)
Microsoft\VisualBasic\MyServices\ClipboardProxyTests.cs (4)
80
clipboard.SetText(text, TextDataFormat.
UnicodeText
);
83
System.Windows.Forms.Clipboard.GetText(TextDataFormat.
UnicodeText
).Should().Be(clipboard.GetText(TextDataFormat.
UnicodeText
));
84
clipboard.GetText(TextDataFormat.
UnicodeText
).Should().Be(text);
System.Windows.Forms (11)
System\Windows\Forms\OLE\Clipboard.cs (7)
204
/// Indicates whether there is text data on the Clipboard in <see cref="TextDataFormat.
UnicodeText
"/> format.
206
public static bool ContainsText() => ContainsText(TextDataFormat.
UnicodeText
);
256
/// Retrieves text data from the <see cref="Clipboard"/> in the <see cref="TextDataFormat.
UnicodeText
"/> format.
258
public static string GetText() => GetText(TextDataFormat.
UnicodeText
);
328
/// Clears the Clipboard and then adds text data in the <see cref="TextDataFormat.
UnicodeText
"/> format.
330
public static void SetText(string text) => SetText(text, TextDataFormat.
UnicodeText
);
346
TextDataFormat.
UnicodeText
=> DataFormats.UnicodeText,
System\Windows\Forms\OLE\DataObject.cs (4)
129
public virtual bool ContainsText() => ContainsText(TextDataFormat.
UnicodeText
);
153
public virtual string GetText() => GetText(TextDataFormat.
UnicodeText
);
176
public virtual void SetText(string textData) => SetText(textData, TextDataFormat.
UnicodeText
);
190
TextDataFormat.
UnicodeText
=> DataFormats.UnicodeTextConstant,
System.Windows.Forms.Tests (19)
System\Windows\Forms\DataObjectTests.ClipboardTests.cs (2)
123
dataObject.ContainsText(TextDataFormat.
UnicodeText
).Should().Be(format == DataFormats.UnicodeText);
183
dataObject.ContainsText(TextDataFormat.
UnicodeText
).Should().Be(format == DataFormats.UnicodeText);
System\Windows\Forms\DataObjectTests.cs (17)
141
.Setup(o => o.ContainsText(TextDataFormat.
UnicodeText
))
145
mockDataObject.Verify(o => o.ContainsText(TextDataFormat.
UnicodeText
), Times.Once());
162
theoryData.Add(TextDataFormat.
UnicodeText
, DataFormats.UnicodeText, result);
733
.Setup(o => o.GetText(TextDataFormat.
UnicodeText
))
737
mockDataObject.Verify(o => o.GetText(TextDataFormat.
UnicodeText
), Times.Once());
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" },
1037
dataObject.ContainsText(TextDataFormat.
UnicodeText
).Should().BeFalse();
1117
dataObject.ContainsText(TextDataFormat.
UnicodeText
).Should().BeFalse();
1417
.Setup(o => o.SetText(textData, TextDataFormat.
UnicodeText
))
1420
mockDataObject.Verify(o => o.SetText(textData, TextDataFormat.
UnicodeText
), Times.Once());
1442
theoryData.Add(textData, TextDataFormat.
UnicodeText
, textData, null, null, null);
1493
theoryData.Add(textData, TextDataFormat.
UnicodeText
, DataFormats.UnicodeText);
2133
{ TextDataFormat.
UnicodeText
, (short)CLIPBOARD_FORMAT.CF_UNICODETEXT }