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