title: How to Change "Table Positioning" in the table properties Inside a MS Word Document Using Delphi XE5
body: <p>I apologize in advance, This is very confusing to explain. Please assist in making it clearer if need be.</p>
  
  <p>I am working with a MS Word document that i generate from code using the following code. The document has 1 table with a bunch of rows and columns that i intend to populate.</p>
  
  <pre><code> wrdDoc.Tables.Add(wrdSelection.Range,9,2);
   wrdDoc.tables.Item(1).Rows.Alignment := wdAlignRowLeft;
  
   wrdDoc.Tables.Item(1).Columns.Item(1).SetWidth(155,wdAdjustNone);
   wrdDoc.Tables.Item(1).Columns.Item(2).SetWidth(299,wdAdjustNone);
   wrdDoc.tables.Item(1).Borders.Item(wdBorderLeft).LineStyle := wdLineStyleSingle;
   wrdDoc.tables.Item(1).Borders.Item(wdBorderRight).LineStyle := wdLineStyleSingle;
   wrdDoc.tables.Item(1).Borders.Item(wdBorderVertical).LineStyle := wdLineStyleSingle;
   wrdDoc.tables.Item(1).Borders.Item(wdBorderTop).LineStyle := wdLineStyleSingle;
   wrdDoc.tables.Item(1).Borders.Item(wdBorderBottom).LineStyle := wdLineStyleSingle;
   wrdDoc.tables.Item(1).Borders.Item(wdBorderHorizontal).LineStyle := wdLineStyleSingle;
  </code></pre>
  
  <p>Basically what i am trying to do is change the following values:</p>
  
  <p>Right Click on the table->Table Properties->Table Tab</p>
  
  <pre><code>Text Wrapping = Around
  </code></pre>
  
  <p>->Positioning->Horizontal:</p>
  
  <pre><code>Position = -0.18"
  Relative To = Margin
  </code></pre>
  
  <p>->Positioning->Vertical:</p>
  
  <pre><code>Position = -0.63"
  Relative To = Paragraph 
  </code></pre>
  
  <p>->Positioning->Options:</p>
  
  <pre><code>Move With Text = True
  Allow Overlap = True
  </code></pre>
  
  <p>I have not been able to find any code to assist me. Or even any Code samples that handle changing the text wrapping to around using code in Delphi. So any assistance would be great.</p>
  
  <p>Thank You</p>