Table of Contents

Class LayoutPosition

Namespace
iText.Layout.Layout
Assembly
itext.layout.dll

We use a simplified version of CSS positioning.

public class LayoutPosition
Inheritance
LayoutPosition
Inherited Members

Remarks

Constructors

LayoutPosition()

public LayoutPosition()

Fields

ABSOLUTE

Absolute positioned objects are positioned relative to the containing block, which is the nearest enclosing ancestor block with a position other than 'static'.

public const int ABSOLUTE = 3

Field Value

int

FIXED

Fixed positioned objects are positioned relative to the viewport, i.e., the page area of the current page.

public const int FIXED = 4

Field Value

int

RELATIVE

Relative positioning is exactly like static positioning except that the left, top, right and bottom properties can be used to apply a translation to the object.

public const int RELATIVE = 2

Field Value

int

Remarks

Relative positioning is exactly like static positioning except that the left, top, right and bottom properties can be used to apply a translation to the object. Relative positioning is literally nothing more than a paint-time translation. As far as layout is concerned, the object is at its original position.

STATIC

Default positioning by normal rules of block and line layout.

public const int STATIC = 1

Field Value

int