title: iText 7.1, C# - How to set table width to span the entire page?
body: <p>I'm using iText 7(.1) with C#. I have a table with data. I want the table to take up the full width. How do I do that?</p>
  
  <p>The <a href="https://developers.itextpdf.com/content/itext-7-jump-start-tutorial/sharp/chapter-1-introducing-basic-building-blocks" rel="nofollow noreferrer">example code in the jumpstart tutorial</a>, that is:</p>
  
  <pre><code>var table = new Table(new float[]{4, 1, 3, 4, 3, 3, 3, 3, 1});
  table.SetWidthPercent(100);
  </code></pre>
  
  <p>doesn't quite work for some reason -- Visual Studio will complain that <code>Table</code> doesn't contain a definition for <code>SetWidthPercent()</code>.</p>