[]
        
(Showing Draft Content)

C1.C1Preview.RenderFragment.GetContentAutoWidth

GetContentAutoWidth Method

GetContentAutoWidth(double, ref double)

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

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

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

double width

Height of area of contents of object.