Hey All, I'm currently working with Word and its C# COM API to create a word plugin. For part of this plugin I would like to be able to take a table and determine its Horizontal alignment on the document. Currently, I have retrieved a list of the tables on the document, I'm able to access its contents and children, but for the life of me I have no clue how to go about acquiring its verticle alignment. Below are a few things I've attempted but I always retrieve an alignment of left (although the tables are not aligned on the left):
foreach (Word.Table thisTable in m_copy.Tables)
{
System.Diagnostics.Debug.WriteLine(thisTable.PreferredWidth);
System.Diagnostics.Debug.WriteLine(thisTable.PreferredWidthType);
System.Diagnostics.Debug.WriteLine(thisTable.Range.ParagraphFormat.Alignment);
System.Diagnostics.Debug.WriteLine(thisTable.Range.ParagraphFormat.BaseLineAlignment);
}
Not sure how else to go about this. Any help would be great! Thanks in advance.