public virtual void GrabExcess(Size excess) { }
public override void GrabExcess(Size excess) { int width = Width; int height = Height; if (GrabHorizontal) { width = excess.Width; } if (GrabVertical) { height = excess.Height; } Resize(width, height); Control.GrabExcess(new Size(width - (Offset * 2), height - (Offset * 2))); }
public virtual void Resize(Size size) { Resize(size.Width, size.Height); }