Show / Hide Table of Contents

Method clipboardData.getText


Overload

Gets text from the clipboard.

public static string getText(int format = 13)
Parameters
format  (int)

Clipboard format id. Default: ClipFormats.Text (CF_UNICODETEXT). If 0, tries to get text (ClipFormats.Text) or file paths (ClipFormats.Files; returns multiline text). Text encoding depends on format; default UTF-16. See ClipFormats.Register.

Returns
string

null if there is no text.

Exceptions
AuException

Failed to open clipboard (after 10 s of wait/retry).