Class LayoutContext
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
LayoutAreafor the content to be placed on
LayoutContext(LayoutArea, bool)
Creates the layout context.
public LayoutContext(LayoutArea area, bool clippedHeight)
Parameters
area
LayoutAreafor the content to be placed on
clippedHeight
boolindicates whether the height is clipped or not
LayoutContext(LayoutArea, MarginsCollapseInfo)
Creates the layout context.
public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo)
Parameters
area
LayoutAreafor the content to be placed on
marginsCollapseInfo
MarginsCollapseInfothe info about margins collapsing
LayoutContext(LayoutArea, MarginsCollapseInfo, IList<Rectangle>)
Creates the layout context.
public LayoutContext(LayoutArea area, MarginsCollapseInfo marginsCollapseInfo, IList<Rectangle> floatedRendererAreas)
Parameters
area
LayoutAreafor the content to be placed on
marginsCollapseInfo
MarginsCollapseInfothe 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
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
Fields
area
The LayoutArea for the content to be placed on.
protected LayoutArea area
Field Value
clippedHeight
Indicates whether the height is clipped or not.
protected bool clippedHeight
Field Value
floatRendererAreas
The list of Rectangle objects.
protected IList<Rectangle> floatRendererAreas
Field Value
marginsCollapseInfo
The info about margins collapsing.
protected MarginsCollapseInfo marginsCollapseInfo
Field Value
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
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
boolindicates whether the height is clipped or not.
ToString()
public override string ToString()