Documentation
On this page

Function · Desktop Services

writeClipboardText

Writes plain text to the desktop clipboard.

@sharpts/gui 0.0.0-local · SharpTS 7c6010104a43

Signature

TypeScript
writeClipboardText(value: string): Promise<void>

Parameters

NameTypeDescription
valuestringText to place on the clipboard.

Returns

Promise<void> — A promise completed after the clipboard is updated.

Source

SharpTS.Gui.Sdk/GuiPackage/runtime.ts:1450 at SharpTS revision 7c6010104a43c34d80e9d44704cf179bc4f5b8e0.