// ------------------------------------------------------------------
 /// <summary>
 /// Print previews all pages of the diagram.
 /// </summary>
 // ------------------------------------------------------------------
 public void PrintPreview()
 {
     DiagramPrinter myPrinter = new DiagramPrinter(
         this.PageSettings,
         this,
         true);
 }
 // ------------------------------------------------------------------
 /// <summary>
 /// Prints all pages of the diagram.
 /// </summary>
 // ------------------------------------------------------------------
 public void Print()
 {
     DiagramPrinter myPrinter = new DiagramPrinter(
         this.PageSettings,
         this,
         false);
 }
 // ------------------------------------------------------------------
 /// <summary>
 /// Print previews all pages of the diagram.
 /// </summary>
 // ------------------------------------------------------------------
 public void PrintPreview() {
   DiagramPrinter myPrinter = new DiagramPrinter(
       this.PageSettings,
       this,
       true);
 }
 // ------------------------------------------------------------------
 /// <summary>
 /// Prints all pages of the diagram.
 /// </summary>
 // ------------------------------------------------------------------
 public void Print() {
   DiagramPrinter myPrinter = new DiagramPrinter(
       this.PageSettings,
       this,
       false);
 }