TextBox.Paste(String) 方法

定义

将选定文本设置为指定文本,但不清除撤消缓冲区。Sets the selected text to the specified text without clearing the undo buffer.

public:
 void Paste(System::String ^ text);
public void Paste (string text);
override this.Paste : string -> unit
Public Sub Paste (text As String)

参数

text
String

要替换的文本。The text to replace.

注解

与设置不同 SelectedText ,不 Paste 会影响剪贴板。Unlike setting SelectedText, Paste does not affect the Clipboard.

适用于