This class is used to specify the position of tables and paragraphs in a Word document. Although the term "absolute" is used, the position is relative to some location in the document or page. Absolute positioning is set in twips. 1 twip = 1/20 pt = 1/1440 in.

 public sealed class AbsolutePositioning
Public NotInheritable Class AbsolutePositioning

You cannot create an AbsolutePositioning object using the new keyword. You must get it from a ParagraphFormatting or Table object using the AbsolutePositioning property.

The following sample gets the AbsolutePositioning object of the first table of a document.


          WordApplication app = new WordApplication();
          Document doc = app.Open(@"C:\sample.doc");
          Table firstTable = (Table) doc.GetElements(Element.Type.Table)[0];
          AbsolutePositioning ap = firstTable.AbsolutePositioning;
        

          Dim app As New WordApplication()
          Dim doc As Document = app.Open("C:\sample.doc")
          Dim firstTable As Table = doc.GetElements(Element.Type.Table)(0)
          Dim ap As AbsolutePositioning = firstTable.AbsolutePositioning
        

Name

Description

Height

HeightExact

OriginX

OriginY

Width

X

Y

Name

Description

HorizontalOrigin

VerticalOrigin