Skip to content

IClipboardService interface

Reads and writes the system clipboard as plain text.

public interface IClipboardService
name description
HasText() Returns whether the clipboard currently holds text, without fetching it.
TryGetText(…) Reads the clipboard text; returns false when the clipboard holds no text.
TrySetText(…) Places text on the clipboard; returns false when the clipboard could not be written.