Clipboard Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a way to work with text on the device clipboard.
public ref class Clipboard abstract sealed
public static class Clipboard
type Clipboard = class
Public Class Clipboard
- Inheritance
-
Clipboard
Properties
Default |
Provides the default implementation for static usage of this API. |
HasText |
Gets a value indicating whether there is any text on the clipboard. |
Methods
GetTextAsync() |
Returns any text that is on the clipboard. |
SetTextAsync(String) |
Sets the contents of the clipboard to be the specified text. |
Events
ClipboardContentChanged |
Occurs when the clipboard content changes. |
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.