Table of Contents

Class LayoutContext

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

Represents the context for content layouting.

public class LayoutContext
Inheritance
LayoutContext
Derived
Inherited Members

Constructors

LayoutContext(LayoutArea)

Creates the layout context.

public LayoutContext(LayoutArea area)

Parameters

area LayoutArea

for the content to be placed on

LayoutContext(LayoutArea, bool)

Creates the layout context.

public LayoutContext(LayoutArea area, bool clippedHeight)

Parameters

area LayoutArea

for the content to be placed on

clippedHeight bool

indicates whether the height is clipped or not

LayoutContext(LayoutArea, MarginsCollapseInfo)

Creates the layout context.

public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo)

Parameters

area LayoutArea

for the content to be placed on

marginsCollapseInfo MarginsCollapseInfo

the info about margins collapsing

LayoutContext(LayoutArea, MarginsCollapseInfo, IList<Rectangle>)

Creates the layout context.

public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, IList<Rectangle> floatedRendererAreas)

Parameters

area LayoutArea

for the content to be placed on

marginsCollapseInfo MarginsCollapseInfo

the info about margins collapsing

floatedRendererAreas IList<Rectangle>

list of Rectangle objects

LayoutContext(LayoutArea, MarginsCollapseInfo, IList<Rectangle>, bool)

Creates the layout context.

public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, IList<Rectangle> floatedRendererAreas, bool clippedHeight)

Parameters

area LayoutArea

for the content to be placed on

marginsCollapseInfo MarginsCollapseInfo

the info about margins collapsing

floatedRendererAreas IList<Rectangle>

list of Rectangle objects

clippedHeight bool

indicates whether the height is clipped or not

Fields

area

The LayoutArea for the content to be placed on.

protected LayoutArea area

Field Value

LayoutArea

clippedHeight

Indicates whether the height is clipped or not.

protected bool clippedHeight

Field Value

bool

floatRendererAreas

The list of Rectangle objects.

protected IList<Rectangle> floatRendererAreas

Field Value

IList<Rectangle>

marginsCollapseInfo

The info about margins collapsing.

protected MarginsCollapseInfo marginsCollapseInfo

Field Value

MarginsCollapseInfo

Methods

GetArea()

Gets the area the content to be placed on.

public virtual LayoutArea GetArea()

Returns

LayoutArea

the area for content layouting.

GetFloatRendererAreas()

Gets list of Rectangle objects.

public virtual IList<Rectangle> GetFloatRendererAreas()

Returns

IList<Rectangle>

list of Rectangle objects

GetMarginsCollapseInfo()

Gets info about margins collapsing.

public virtual MarginsCollapseInfo GetMarginsCollapseInfo()

Returns

MarginsCollapseInfo

the info about margins collapsing

IsClippedHeight()

Indicates whether the layout area's height is clipped or not.

public virtual bool IsClippedHeight()

Returns

bool

whether the layout area's height is clipped or not.

SetClippedHeight(bool)

Defines whether the layout area's height is clipped or not.

public virtual void SetClippedHeight(bool clippedHeight)

Parameters

clippedHeight bool

indicates whether the height is clipped or not.

ToString()

public override string ToString()

Returns

string