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
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.
=20public sealed class AbsolutePositioning=20
Public NotInheritable Class AbsolutePositioning=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.
The following sample gets the AbsolutePositioning
object of=
the first table of a document.
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
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
Name | =20
Description | =20
---|---|
=20 | Sets or returns an int that represe=
nts the height in twips. | =20
=20 | Specifies whether AbsolutePositioning.Height is an exact height (tr= ue) or a minimum height (false). | =20
=20 | Returns the horizontal origin of the position's = AbsolutePositioning.X. P= ossible values are: Column, Margin, Page. | =20
=20 | Sets or returns the vertical origin of the posit= ion's AbsolutePositioning.Y<= /a>. Possible values are: Margin, Page, Text. | =20
=20 | Sets or returns an int that represe=
nts the absolute width in twips. One twip =3D (1/20 pt) or (1/1440 in) | =
=20
=20 | Sets or returns an int that represe=
nts the x coordinate in twips. One twip =3D (1/20 pt) or (1/1440 in) | =
=20
=20 | 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
Name | =20
Description | =20
---|---|
=20 | An AbsolutePositioning.HorizontalOrigin value specifies t= he vertical origin of a table or paragraph position's y coordinate. | =20
=20 | An AbsolutePositioning.VerticalOrigin value specifies the v= ertical origin of a table or paragraph position's y coordinate. | =20