c#richTextBox怎麼設置只能粘貼進文本,不允許粘貼進圖片
private void richTextBox1_KeyDown(object sender, KeyEventArgs e)
{
if (e.Control && e.KeyCode == Keys.V)
{
e.SuppressKeyPress = true;
richTextBox1.Paste(DataFormats.GetFormat(DataFormats.Text));
}
}