System.Windows.Forms.TextBox.Paste Method

Sets the selected text to the specified text without clearing the undo buffer.

Syntax

public void Paste (string text)

Parameters

text
The text to replace.

Remarks

Unlike setting TextBoxBase.SelectedText, TextBox.Paste(string) does not affect the Clipboard.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0