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));
}
}