GetText Method
Collapse the table of content
Expand the table of content

Clipboard.GetText Method ()


Returns a string containing the UnicodeText data on the Clipboard.

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

public 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
© 2015 Microsoft