Exemplo n.º 1
0
 /// <summary>
 /// font
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Font_Dialogue_Click(object sender, RoutedEventArgs e)
 {
     RichTextBox rtb = SeekFocus();
     if (rtb != null)
     {
         FontStyleForm fs = new FontStyleForm(rtb.Selection);
         fs.ShowDialog();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Advanced Font Form
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void AdvancedFontClick(object sender, RoutedEventArgs e)
 {
     //opens up the advanced formatting form with the selected text selection
     FontStyleForm fs = new FontStyleForm(new RichTextBox().Selection);
     fs.ShowDialog();
 }