MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Paste

Method Paste

Source/Engine/UI/GUI/Common/TextBoxBase.cs:683–694  ·  view source on GitHub ↗

Replaces the current selection in the text box with the contents of the Clipboard.

()

Source from the content-addressed store, hash-verified

681 /// Replaces the current selection in the text box with the contents of the Clipboard.
682 /// </summary>
683 public virtual void Paste()
684 {
685 if (IsReadOnly)
686 return;
687
688 // Get clipboard data
689 var clipboardText = Clipboard.Text;
690 if (string.IsNullOrEmpty(clipboardText))
691 return;
692
693 Insert(clipboardText);
694 }
695
696 /// <summary>
697 /// Duplicates the current selection in the text box.

Callers

nothing calls this directly

Calls 1

InsertFunction · 0.85

Tested by

no test coverage detected