Class LineLayoutContext
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
LayoutAreafor the content to be placed on
marginsCollapseInfo
MarginsCollapseInfothe info about margins collapsing
floatedRendererAreas
IList<Rectangle>list of Rectangle objects
clippedHeight
boolindicates whether the height is clipped or not
LineLayoutContext(LayoutContext)
Creates the context for content of a line.
public LineLayoutContext(LayoutContext layoutContext)
Parameters
layoutContext
LayoutContextthe 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
booltrue 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
floatthe indent of text in this line.
Returns
- LineLayoutContext
this LineLayoutContext instance.