MonoReports.Core.ReportRenderer.MeasureControl C# (CSharp) Method

MeasureControl() public method

public MeasureControl ( Control control ) : Size
control MonoReports.Model.Controls.Control
return MonoReports.Model.Size
        public Size MeasureControl(Control control)
        {
            Type controlType = control.GetType();
            if(renderersDictionary.ContainsKey(controlType)){
                var renderer = renderersDictionary[controlType] as IControlRenderer;
                return renderer.Measure(context,control);
            }
            return default(Size);
        }