public static void Print(this PictureBox pictureBox, IControlPrinter <PictureBox> controlPrinter) { controlPrinter.TargetControl = pictureBox; controlPrinter.Print(); }
/// <summary> /// Print the control, using a custom IControlPrinter instance. /// </summary> public static void Print(this RichTextBox richTextBox, IControlPrinter<RichTextBox> controlPrinter) { controlPrinter.TargetControl = richTextBox; controlPrinter.Print(); }
public static void Print(this RichTextBox richTextBox, IControlPrinter <RichTextBox> controlPrinter) { controlPrinter.TargetControl = richTextBox; controlPrinter.Print(); }
public static void Print(this PictureBox pictureBox, IControlPrinter<PictureBox> controlPrinter) { controlPrinter.TargetControl = pictureBox; controlPrinter.Print(); }
public void BindEndPrintEvent <T>(IControlPrinter <T> controlPrinter) { PrintDocument.EndPrint += controlPrinter.PrintDocument_EndPrint; }
public void BindPrintPageEvent <T>(IControlPrinter <T> controlPrinter) { PrintDocument.PrintPage += controlPrinter.PrintDocument_PrintPage; }
public void BindBeginPrintEvent <T>(IControlPrinter <T> controlPrinter) { PrintDocument.BeginPrint += controlPrinter.PrintDocument_BeginPrint; }