📜  c# 从剪贴板粘贴 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:13.709000             🧑  作者: Mango

代码示例1
// Paste text from the clipboard.
private void btnPaste_Click(object sender, EventArgs e)
{
    txtPaste.Text = Clipboard.GetText();
}

// Copy text to the clipboard.
private void btnCopy_Click(object sender, EventArgs e)
{
    Clipboard.SetText(txtCopy.Text);
}