title: MigraDoc table formatting / cell indent
body: <p>I'm trying to create a table with MigraDoc. I want it to look like this:
  <a href="https://i.stack.imgur.com/frmjG.png" rel="nofollow noreferrer">This is how the table should look</a></p>
  
  <p>Instead I'm only getting this:
  <a href="https://i.stack.imgur.com/LajDt.png" rel="nofollow noreferrer">This is the table I'm getting</a></p>
  
  <p>The text is too near to the border. The indent is missing. I tried</p>
  
  <pre><code>table.Format.LeftIndent = 0.2;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>table.Format.LeftIndent = "0,2cm";
  </code></pre>
  
  <p>to set the indent for all table cells. But it didn't work. How can an indent for all table cells be achieved?</p>
  
  <p>This is my complete test method:</p>
  
  <pre><code>private Document debugMigraDocTable()
  {
    Document document = setupDocument();
    Section sectionProtocolHeader = document.AddSection();
    Paragraph measValueParagraph = sectionProtocolHeader.AddParagraph("Measurement");
  
    Table table = sectionProtocolHeader.AddTable();
    table.Format.LeftIndent = 0.8;
  
    // Table header      
    Column column = table.AddColumn("1,2cm");
    column = table.AddColumn("1,7cm");
    column = table.AddColumn("1,7cm");
  
    column = table.AddColumn("1,2cm");
    column = table.AddColumn("1,7cm");
    column = table.AddColumn("1,7cm");
  
    Row row = table.AddRow();
    row.HeadingFormat = true;
    row.Format.Alignment = ParagraphAlignment.Center;
    row.Format.Font.Bold = true;
  
    row.Cells[0].AddParagraph("Key");
    row.Cells[1].AddParagraph("Value 1");
    row.Cells[2].AddParagraph("Value 2");
    row.Cells[3].AddParagraph("Key");
    row.Cells[4].AddParagraph("Value 1");
    row.Cells[5].AddParagraph("Value 2");
  
    // Table data
    row = table.AddRow();
    row.Cells[0].AddParagraph("1");
    row.Cells[1].AddParagraph("1,13");
    row.Cells[2].AddParagraph("");
    row.Cells[3].AddParagraph("33");
    row.Cells[4].AddParagraph("0,84");
    row.Cells[5].AddParagraph("");
  
    row = table.AddRow();
    row.Cells[0].AddParagraph("2");
    row.Cells[1].AddParagraph("1,19");
    row.Cells[2].AddParagraph("");
    row.Cells[3].AddParagraph("34");
    row.Cells[4].AddParagraph("1,35");
    row.Cells[5].AddParagraph("");
  
    row = table.AddRow();
    row.Cells[0].AddParagraph("3");
    row.Cells[1].AddParagraph("1,01");
    row.Cells[2].AddParagraph("");
    row.Cells[3].AddParagraph("35");
    row.Cells[4].AddParagraph("1,28");
    row.Cells[5].AddParagraph("");
  
    return document;
  }
  </code></pre>
  
  <p>For preview and printing I render this to RTF:</p>
  
  <pre><code>  Document document = debugMigraDocTable();
  
    RtfDocumentRenderer rtfRenderer = new RtfDocumentRenderer();
    string rtf = rtfRenderer.RenderToString(document, Path.GetTempPath());
  </code></pre>