[]
The ToolStripMain class implements the usual Cut, Copy, and Paste clipboard commands.
All clipboard commands are deferred to the C1Editor itself:
To write code in C#
void Cut_Click(object sender, EventArgs e)
{
Editor.Cut();
}
void Copy_Click(object sender, EventArgs e)
{
Editor.Copy();
}
void Paste_Click(object sender, EventArgs e)
{
Editor.PasteAsText(); //.Paste();
}
The C1Editor clipboard commands are simple and easy to use, like the ones in the regular TextBox and RichTextBox controls.
Notice that the Paste command is implemented with a call to the PasteAsText command. This ensures that the text being pasted is not interpreted as XHTML.