Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 958 Bytes

File metadata and controls

23 lines (17 loc) · 958 Bytes
title ClipboardHelper Class
description The ClipboardHelper class provides methods for interacting with the clipboard.
ms.date 2/27/2025
ms.topic reference
no-loc
PowerToys
Windows
Insider

ClipboardHelper Class

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

The ClipboardHelper class provides methods for interacting with the clipboard. It allows you to get and set text and RTF (Rich Text Format) data on the clipboard. This is useful for applications that need to manipulate clipboard data, such as copying and pasting formatted text.

Methods

Method Description
GetText() Gets the text data from the clipboard.
SetRtf(String, String) Sets the RTF data on the clipboard.
SetText(String) Sets the text data on the clipboard.