Exemple #1
0
 public virtual void GrabExcess(Size excess)
 {
 }
Exemple #2
0
        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)));
        }
Exemple #3
0
 public virtual void Resize(Size size)
 {
     Resize(size.Width, size.Height);
 }