Exemplo n.º 1
0
 private void B_Redo_Click(object sender, EventArgs e)
 {
     if (RTXT_Editeur.CanRedo == true)
     {
         RTXT_Editeur.Redo();
     }
 }
Exemplo n.º 2
0
 private void B_Couper_Click(object sender, EventArgs e)
 {
     if (RTXT_Editeur.SelectedText != "")
     {
         RTXT_Editeur.Cut();
     }
 }
Exemplo n.º 3
0
 private void B_Copier_Click(object sender, EventArgs e)
 {
     if (RTXT_Editeur.SelectionLength > 0)
     {
         RTXT_Editeur.Copy();
     }
 }
Exemplo n.º 4
0
 private void B_Coller_Click(object sender, EventArgs e)
 {
     if (Clipboard.GetDataObject().GetDataPresent(DataFormats.Text) == true)
     {
         if (RTXT_Editeur.SelectionLength > 0)
         {
             if (MessageBox.Show("Voulez vous copier par dessus votre selection?", "Ecraser la sélection?", MessageBoxButtons.YesNo) == DialogResult.No)
             {
                 RTXT_Editeur.SelectionStart = RTXT_Editeur.SelectionStart + RTXT_Editeur.SelectionLength;
             }
         }
         RTXT_Editeur.Paste();
     }
 }