| title | ClipboardHelper.GetText() Method | |||
|---|---|---|---|---|
| description | The GetText method retrieves the text data from the clipboard. | |||
| ms.date | 2/19/2025 | |||
| ms.topic | reference | |||
| no-loc |
|
Namespace: Microsoft.CommandPalette.Extensions.Toolkit
The GetText method retrieves the text data from the clipboard. This is useful for applications that need to access clipboard data, such as pasting text into a text box or other UI element.
A String that represents the text data retrieved from the clipboard. This can be any string value, including plain text or formatted text. If the clipboard does not contain text data, this method may return an empty string or null.