Show / Hide Table of Contents

Method keys.AddText(+ 1 overload)


Overload

Adds text or HTML. It will be sent by keys.SendNow.

public keys AddText(string text, string html = null)
Parameters
text  (string)

Text. Can be null.

html  (string)

HTML. Can be full HTML or fragment. See clipboardData.AddHtml. Can be specified only text or only html or both. If both, will paste html in apps that support it, elsewhere text. If only html, in apps that don't support HTML will paste html as text.

Returns
keys

This.

Remarks

To send text can use keys, characters or clipboard, depending on opt.key and text. If html not null, uses clipboard.


Overload(top)

Adds text with explicitly specified sending method (keys, characters or paste).

public keys AddText(string text, OKeyText how)
Parameters
text  (string)

Text. Can be null.

how  (OKeyText)

Overrides OKey.TextHow.

Returns
keys

This.