Contents

pasteAsRichText(_:)

This action method inserts the contents of the pasteboard into the receiver’s text as rich text, maintaining its attributes.

Declaration

func pasteAsRichText(_ sender: Any?)

Parameters

  • sender:

    The control that sent the message; may be nil.

Discussion

The text is inserted at the insertion point if there is one, otherwise replacing the selection.

See Also

Related Documentation

Clicking and pasting