Message-ID: <2145861847.9435.1711690999248.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_9434_2126656524.1711690999248" ------=_Part_9434_2126656524.1711690999248 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html AbsolutePositioning

AbsolutePositioning

Description

=20

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

=20
C#
=20
 public sealed class AbsolutePositioning
=20
=20
vb.net
=20
Public NotInheritable Class AbsolutePositioning
=20
=20

Remarks

=20

You cannot create an AbsolutePositioning object using the new keywor= d. You must get it from a ParagraphFormatting or Table object using the AbsolutePositioning p= roperty.

=20

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

=20

Examples

=20
C#
=20

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

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

Properties

=20
=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 = =20 =20 =20 =20 = =20 =20 =20 =20 =20 =20

Name

Description

Height

Sets or returns an int that represe= nts the height in twips.

HeightExact

Specifies whether AbsolutePositioning.Height is an exact height (tr= ue) or a minimum height (false).

OriginX

Returns the horizontal origin of the position's = AbsolutePositioning.X. P= ossible values are: Column, Margin, Page.

OriginY

Sets or returns the vertical origin of the posit= ion's AbsolutePositioning.Y<= /a>. Possible values are: Margin, Page, Text.

Width

Sets or returns an int that represe= nts the absolute width in twips. One twip =3D (1/20 pt) or (1/1440 in)

X

Sets or returns an int that represe= nts the x coordinate in twips. One twip =3D (1/20 pt) or (1/1440 in)

Y

Sets or returns an int that represe= nts the position's y coordinate in twips. One twip =3D (1/20 pt) or (1/1440= in)
=20

Nested Classes

=20
=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20

Name

Description

HorizontalOrigin

An AbsolutePositioning.HorizontalOrigin value specifies t= he vertical origin of a table or paragraph position's y coordinate.

VerticalOrigin

An AbsolutePositioning.VerticalOrigin value specifies the v= ertical origin of a table or paragraph position's y coordinate.
------=_Part_9434_2126656524.1711690999248--