Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 801 Bytes

File metadata and controls

19 lines (13 loc) · 801 Bytes
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
PowerToys
Windows
Insider

ClipboardHelper.GetText() Method

Definition

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.

Returns

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.