PurplePen.DescriptionCourseObj.RectangleUpdating C# (CSharp) Méthode

RectangleUpdating() public méthode

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
Résultat 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;
        }