[]
        
(Showing Draft Content)

C1.C1Preview.RenderFragment.CalcLength

CalcLength Method

CalcLength(RefDim, LengthBase, bool, out PageAreaBase, out double)

Calculates a value of dimension. Only LengthRef, LengthAbs, LengthExp can be specified as length.

Declaration
protected virtual void CalcLength(RefDim dim, LengthBase length, bool customObjectDimension, out PageAreaBase pageArea, out double value)
Parameters
Type Name Description
RefDim dim

Dimension to calculate.

LengthBase length

Value of dimension, can be LengthAbs, LengthRef or LengthExp.

bool customObjectDimension

Indicates that the custom object dimension is resolved, coordinate of point for RenderLine, width of column for RenderTable etc.

PageAreaBase pageArea

Contains PageAreaBase object on exit or nul if coordinate is relative.

double value

Contains value of coordinate or size on exit.

CalcLength(RefDim)

This method can be called only by another RenderFragment object during resolving LengthRef object.

Declaration
protected virtual void CalcLength(RefDim dim)
Parameters
Type Name Description
RefDim dim

Dimension which must be resolved.