title: I'm using PdfSharp and can't find the class BeginBox where is it?
body: <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Diagnostics;
  using System.IO;
  using System.Drawing;
  using PdfSharp;
  using PdfSharp.Drawing;
  using PdfSharp.Pdf;
  using PdfSharp.Pdf.IO;
  
  namespace Lightnings_Extractor
  {
      class PDF
      {
          public PDF()
          {
              // Create a new PDF document
              PdfDocument document = new PdfDocument();
              document.Info.Title = "Created with PDFsharp";
  
              // Create an empty page
              PdfPage page = document.AddPage(); 
              // Get an XGraphics object for drawing
              XGraphics gfx = XGraphics.FromPdfPage(page); 
              // Create a font
              XFont font = new XFont("Verdana", 20, XFontStyle.BoldItalic); 
              // Draw the text
              gfx.DrawString("Hello, World!", font, XBrushes.Black,
              new XRect(0, 0, page.Width, page.Height),
              XStringFormats.Center); 
              // Save the document...
              const string filename = @"d:\HelloWorld.pdf";
              document.Save(filename);
              // ...and start a viewer.
              Process.Start(filename);
          }
  
          private void DrawImage(XGraphics gfx, int number)
          {
          }
      }
  }
  </code></pre>
  
  <p>I'm taking the sample from this link: <a href="http://www.pdfsharp.net/wiki/Graphics-sample.ashx" rel="noreferrer">http://www.pdfsharp.net/wiki/Graphics-sample.ashx</a>
  There is a sample there: Draw an image in original size</p>
  
  <pre><code>void DrawImage(XGraphics gfx, int number)
  {
    BeginBox(gfx, number, "DrawImage (original)");
  
    XImage image = XImage.FromFile(jpegSamplePath);
  
    // Left position in point
    double x = (250 - image.PixelWidth * 72 / image.HorizontalResolution) / 2;
    gfx.DrawImage(image, x, 0);
  
    EndBox(gfx);
  }
  </code></pre>
  
  <p>What am I missing here?</p>