UMD.HCIL.Piccolo.PNode.Print C# (CSharp) Method

Print() public method

Constructs a new PrintDocument, allows the user to select which printer to print to, and then prints the node.
public Print ( ) : void
return 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();
			}
		}