Table of Contents

Class LineLayoutContext

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

Represents the context for content of a line layouting.

public class LineLayoutContext : LayoutContext
Inheritance
LineLayoutContext
Inherited Members

Constructors

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

Creates the context for content of a line.

public LineLayoutContext(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

LineLayoutContext(LayoutContext)

Creates the context for content of a line.

public LineLayoutContext(LayoutContext layoutContext)

Parameters

layoutContext LayoutContext

the context for content layouting

Methods

GetTextIndent()

Gets the indent of text in the beginning of the current line.

public virtual float GetTextIndent()

Returns

float

the indent of text in this line.

IsFloatOverflowedToNextPageWithNothing()

Specifies whether some floating element within the same paragraph has already completely overflowed to the next page.

public virtual bool IsFloatOverflowedToNextPageWithNothing()

Returns

bool

true if floating element has already overflowed to the next page, false otherwise.

SetFloatOverflowedToNextPageWithNothing(bool)

Changes the value of property specified by IsFloatOverflowedToNextPageWithNothing().

public virtual LineLayoutContext SetFloatOverflowedToNextPageWithNothing(bool floatOverflowedToNextPageWithNothing)

Parameters

floatOverflowedToNextPageWithNothing bool

true if some floating element already completely overflowed.

Returns

LineLayoutContext

this LineLayoutContext instance.

SetTextIndent(float)

Sets the indent of text in the beginning of the current line.

public virtual LineLayoutContext SetTextIndent(float textIndent)

Parameters

textIndent float

the indent of text in this line.

Returns

LineLayoutContext

this LineLayoutContext instance.