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