title: Screen Capture in C# using HtmlAgilityPack
body: <p>Due to the lack of proper documentation, I'm not sure if <code>HtmlAgilityPack</code> supports screen capture in C# after it loads the html contents.</p>
  
  <p>So is there a way I can more or less grab a screenshot using (or along with) HtmlAgilityPack so I can have a visual clue as to what happens every time I do page manipulations?</p>
  
  <p>Here is my working code so far:</p>
  
  <pre><code>using HtmlAgilityPack;
  using System;
  
  namespace ConsoleApplication4
  {
      class Program
      {
          static void Main(string[] args)
          {
              string urlDemo = "https://htmlagilitypack.codeplex.com/";
              HtmlWeb getHtmlWeb = new HtmlWeb();
              var doc = getHtmlWeb.Load(urlDemo);
              var sentence = doc.DocumentNode.SelectNodes("//p");
              int counter = 1;           
              try
              {
                  foreach (var p in sentence)
                  {
                      Console.WriteLine(counter + ". " + p.InnerText);
                      counter++;
                  }
              }
              catch (Exception e)
              { 
                  Console.WriteLine(e);
              }  
              Console.ReadLine();            
          }
      }
  }
  </code></pre>
  
  <p>Currently, it scrapes and output all the <code>p</code> of the page in the console but at the same time I want to get a screen grab of the scraped contents but I don't know how and where to begin.</p>
  
  <p>Any help is greatly appreciated. TIA</p>