| title | ClipboardHelper.SetText(String) Method | |||
|---|---|---|---|---|
| description | The SetText method sets the text data on the clipboard. | |||
| ms.date | 2/19/2025 | |||
| ms.topic | reference | |||
| no-loc |
|
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
The SetText method sets the text data on the clipboard. This is useful for applications that need to copy text to the clipboard for pasting into other applications.
text String
The text to set on the clipboard. This can be any string value, including plain text or formatted text.