Class LayoutResult
Represents the result of content layouting.
public class LayoutResult
- Inheritance
-
LayoutResult
- Derived
- Inherited Members
Constructors
LayoutResult(int, LayoutArea, IRenderer, IRenderer)
Creates the LayoutResult result of layouting }.
public LayoutResult(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.
LayoutResult(int, LayoutArea, IRenderer, IRenderer, IRenderer)
Creates the LayoutResult result of layouting }.
public LayoutResult(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
FULL
The status of Layout(LayoutContext) which indicates that the content was fully placed.
public const int FULL = 1
Field Value
NOTHING
The status of Layout(LayoutContext) which indicates that the content was not placed.
public const int NOTHING = 3
Field Value
PARTIAL
The status of Layout(LayoutContext) which indicates that the content was placed partially.
public const int PARTIAL = 2
Field Value
areaBreak
The AreaBreak that will be rendered by this object.
protected AreaBreak areaBreak
Field Value
causeOfNothing
The first renderer to produce NOTHING during Layout(LayoutContext).
protected IRenderer causeOfNothing
Field Value
occupiedArea
The area occupied by the content during its layouting.
protected LayoutArea occupiedArea
Field Value
Remarks
The area occupied by the content during its layouting. which indicates whether the content was added or not and, if yes, was it added fully or partially.
overflowRenderer
The overflow renderer created during layouting.
protected IRenderer overflowRenderer
Field Value
Remarks
The overflow renderer created during layouting. This renderer will be used to draw the overflowed part of content.
splitRenderer
The split renderer created during layouting.
protected IRenderer splitRenderer
Field Value
Remarks
The split renderer created during layouting. This renderer will be used to draw the splitted part of content.
status
The status of Layout(LayoutContext) which indicates whether the content was added or not and, if yes, was it added fully or partially.
protected int status
Field Value
Methods
GetAreaBreak()
Gets areaBreak value.
public virtual AreaBreak GetAreaBreak()
Returns
- AreaBreak
the areaBreak value
GetCauseOfNothing()
Gets the first renderer to produce NOTHING during Layout(LayoutContext)
public virtual IRenderer GetCauseOfNothing()
Returns
GetOccupiedArea()
Gets the layout area occupied by the content during layouting.
public virtual LayoutArea GetOccupiedArea()
Returns
- LayoutArea
the layout area occupied by the content
GetOverflowRenderer()
Gets the overflow renderer created during layouting.
public virtual IRenderer GetOverflowRenderer()
Returns
GetSplitRenderer()
public virtual IRenderer GetSplitRenderer()
Returns
GetStatus()
Gets the status of Layout(LayoutContext).
public virtual int GetStatus()
Returns
- int
the status
SetAreaBreak(AreaBreak)
Sets areaBreak value.
public virtual LayoutResult SetAreaBreak(AreaBreak areaBreak)
Parameters
areaBreak
AreaBreakthe areaBreak value
Returns
- LayoutResult
the areaBreak value
SetOverflowRenderer(IRenderer)
Sets the overflow renderer.
public virtual void SetOverflowRenderer(IRenderer overflowRenderer)
Parameters
overflowRenderer
IRendererthe renderer to draw the overflowed part of the content
SetSplitRenderer(IRenderer)
Sets the split renderer.
public virtual void SetSplitRenderer(IRenderer splitRenderer)
Parameters
splitRenderer
IRendererthe renderer to draw the splitted part of the content
SetStatus(int)
Sets the status of Layout(LayoutContext).
public virtual void SetStatus(int status)
Parameters
status
intthe status of Layout(LayoutContext)
ToString()
public override string ToString()