UMD.HCIL.Piccolo.PNode.Print C# (CSharp) Méthode

Print() public méthode

Constructs a new PrintDocument, allows the user to select which printer to print to, and then prints the node.
public Print ( ) : void
Résultat void
		public virtual void Print() {
			PrintDocument printDocument = new PrintDocument();
			PrintDialog printDialog = new PrintDialog();
			printDialog.Document = printDocument;

			if (printDialog.ShowDialog() == DialogResult.OK) {
				printDocument.PrintPage += printDocument_PrintPage;
				printDocument.Print();
			}
		}