[]
        
(Showing Draft Content)

C1.C1Preview.RenderFragment.GetContentAutoHeight

GetContentAutoHeight Method

GetContentAutoHeight(double, ref double)

Override this method to calculate the height of object on basis of its content, this method is called when height of object specified as auto, for example:

obj.Height = Unit.Auto;
Declaration
protected virtual void GetContentAutoHeight(double width, ref double height)
Parameters
Type Name Description
double width

Width of area of contents of object.

double height

Height of area of contents of object, value must be specified in the "Document.ResolvedUnit" units.