public static Format GetFormat (int id) { lock (lock_object) { if (!initialized) Init (); return Format.Find (id); } }
private void PasteHandler(object sender, Forms.KeyEventArgs e) { if (e.Control && e.KeyCode == Keys.V) { richTextEditorBox.Paste(DataFormats.GetFormat(DataFormats.Text)); e.Handled = true; } }