Skip to content

ElectronClipboard.writeRTF method

ElectronClipboard › writeRTF

Unofficial

Writes text to the clipboard as RTF.

Signature:

writeRTF(text: string, type?: "clipboard" | "selection" | undefined): void

Parameters:

ParameterTypeDescription
textstringThe RTF content.
type?"clipboard" | "selection" | undefinedThe clipboard type.

Returns: void