O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Placing Text on the Clipboard

The static System.Windows.Clipboard class allows you to place text on the systemwide clipboard, or to detect whether any text exists on the clipboard.

Note

You cannot retrieve the clipboard text from a Windows Phone app, only set it. Calling the GetText method raises a SecurityException.

Clipboard contains the following three methods:

Image ContainsText()Queries the clipboard for the presence of text. Returns true if text is present; otherwise, false.

Image SetText(string text)Places text in the clipboard.

GetText()Raises ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required