Exemplo n.º 1
0
 private void printToolStripMenuItem_Click(object sender, EventArgs e)
 {
     PrintDialogSettings pds = new PrintDialogSettings();
     pds.ShowPrintDialog = true;
     pds.ShowPrintPreviewDialog = false;
     pds.IncludeLineNumbers = true;
     fileManager.SelectedFileTab.textBox.Margin = new Padding(10);
     fileManager.SelectedFileTab.textBox.Print(pds);
 }
Exemplo n.º 2
0
 public void Print()
 {
     var settings = new PrintDialogSettings {
         Title  = Filename,
         Header = "&b&w&b",
         Footer = "&b&p",
         ShowPrintPreviewDialog = true
     };
     TB.Print(settings);
 }
Exemplo n.º 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     var sett = new PrintDialogSettings();
     fastColoredTextBox1.Print(sett);
 }
Exemplo n.º 4
0
 private void printToolStripButton_Click(object sender, EventArgs e)
 {
     if (CurrentTB != null)
     {
         var settings = new PrintDialogSettings();
         settings.Title = msaTabControl1.SelectedPage.PageTitle;
         settings.Header = "&b&w&b";
         settings.Footer = "&b&p";
         CurrentTB.Print(settings);
     }
 }
Exemplo n.º 5
0
 private void tsPrint_Click(object sender, EventArgs e)
 {
     PrintDialogSettings printSettings = new PrintDialogSettings() { ShowPrintPreviewDialog = true};
     if (tabControl1.SelectedIndex == 0)
         txtHost.Print(printSettings);
     else
         txtAsm.Print(printSettings);
 }
Exemplo n.º 6
0
 public void Print()
 {
     var settings = new PrintDialogSettings();
     settings.Title  = Filename;
     settings.Header = "&b&w&b";
     settings.Footer = "&b&p";
     settings.ShowPrintPreviewDialog = true;
     Editor.Print(settings);
 }