Class LineLayoutResult
Represents the result of a line layouting.
public class LineLayoutResult : MinMaxWidthLayoutResult
- Inheritance
-
LineLayoutResult
- Inherited Members
Constructors
LineLayoutResult(int, LayoutArea, IRenderer, IRenderer)
Creates the LayoutResult result of layouting }.
public LineLayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer)
Parameters
status
intthe status of Layout(LayoutContext)
occupiedArea
LayoutAreathe area occupied by the content
splitRenderer
IRendererthe renderer to draw the splitted part of the content
overflowRenderer
IRendererthe renderer to draw the overflowed part of the content
Remarks
Creates the LayoutResult result of layouting }. The causeOfNothing will be set as null.
LineLayoutResult(int, LayoutArea, IRenderer, IRenderer, IRenderer)
Creates the LayoutResult result of layouting }.
public LineLayoutResult(int status, LayoutArea occupiedArea, IRenderer splitRenderer, IRenderer overflowRenderer, IRenderer cause)
Parameters
status
intthe status of Layout(LayoutContext)
occupiedArea
LayoutAreathe area occupied by the content
splitRenderer
IRendererthe renderer to draw the splitted part of the content
overflowRenderer
IRendererthe renderer to draw the overflowed part of the content
cause
IRendererthe first renderer to produce NOTHING
Fields
splitForcedByNewline
Indicates whether split was forced by new line symbol or not.
protected bool splitForcedByNewline
Field Value
Methods
GetFloatsOverflowedToNextPage()
Gets the list of floats overflowed to next page.
public virtual IList<IRenderer> GetFloatsOverflowedToNextPage()
Returns
IsSplitForcedByNewline()
Indicates whether split was forced by new line symbol in rendered text.
public virtual bool IsSplitForcedByNewline()
Returns
- bool
whether split was forced by new line or not
Remarks
Indicates whether split was forced by new line symbol in rendered text. The value will be set as true if, for example, the rendered text of one of the child renderers contains '\n' symbol.
SetFloatsOverflowedToNextPage(IList<IRenderer>)
Sets the list of floats overflowed to next page.
public virtual void SetFloatsOverflowedToNextPage(IList<IRenderer> floatsOverflowedToNextPage)
Parameters
SetSplitForcedByNewline(bool)
Sets a flat that split was forced by new line symbol in rendered text.
public virtual LineLayoutResult SetSplitForcedByNewline(bool isSplitForcedByNewline)
Parameters
isSplitForcedByNewline
boolindicates that split was forced by new line symbol in rendered text.
Returns
- LineLayoutResult
this layout result the setting was applied on.