Пример #1
0
        public void ExtendBoundsToFitShape()
        {
            RectangleF rect = shape.GetBoundingRect();

            dimension = new Rectangle(
                (int)Math.Round(rect.X),
                (int)Math.Round(rect.Y),
                (int)Math.Round(rect.Width),
                (int)Math.Round(rect.Height)
                );

            Refresh();
        }
Пример #2
0
 public RectangleF GetBoundingRectangle()
 {
     return(shape.GetBoundingRect());
 }