PurplePen.DescriptionCourseObj.RectangleUpdating C# (CSharp) Method

RectangleUpdating() public method

public RectangleUpdating ( RectangleF &newRect, bool dragAll, bool dragLeft, bool dragTop, bool dragRight, bool dragBottom ) : void
newRect System.Drawing.RectangleF
dragAll bool
dragLeft bool
dragTop bool
dragRight bool
dragBottom bool
return void
        public override void RectangleUpdating(ref RectangleF newRect, bool dragAll, bool dragLeft, bool dragTop, bool dragRight, bool dragBottom)
        {
            int bestNumberOfColumns = BestNumberOfColumns(newRect.Size);

            if (bestNumberOfColumns != renderer.NumberOfColumns) {
                renderer.NumberOfColumns = bestNumberOfColumns;
                SizeF size = renderer.Measure();
                aspect = size.Width / size.Height;
            }

            base.RectangleUpdating(ref newRect, dragAll, dragLeft, dragTop, dragRight, dragBottom);

            renderer.CellSize = newRect.Height / renderer.ColumnLengthInCells;
        }