Clipboard::GetText Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns a string containing the UnicodeText data on the Clipboard.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

static String^ GetText()

Return Value

Type: System::String^

A string containing the UnicodeText data , or an empty string if no UnicodeText data is available on the Clipboard.

The UnicodeText data format denotes 16-bit character encoded Unicode, also referred to as UTF-16, and UCS-2.

.NET Framework
Available since 3.0
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Return to top