Skip to end of metadata
Go to start of metadata

Description

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.

C#
vb.net

Remarks

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.

Examples

C#
vb.net

Properties

Name

Description

Height

Sets or returns an int that represents the height in twips.

HeightExact

Specifies whether AbsolutePositioning.Height is an exact height (true) or a minimum height (false).

OriginX

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

OriginY

Sets or returns the vertical origin of the position's AbsolutePositioning.Y. Possible values are: Margin, Page, Text.

Width

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

X

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

Y

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

Nested Classes

Name

Description

HorizontalOrigin

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

VerticalOrigin

An AbsolutePositioning.VerticalOrigin value specifies the vertical origin of a table or paragraph position's y coordinate.
  • No labels