Clipboard::SetText Method
.NET Framework (current version)
Clears the Clipboard and then adds text data to it.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | SetText(String^) | Clears the Clipboard and then adds text data in the Text or UnicodeText format, depending on the operating system. |
![]() ![]() | SetText(String^, TextDataFormat) | Clears the Clipboard and then adds text data in the format indicated by the specified TextDataFormat value. |
Show:

