Ejemplo n.º 1
0
        /// <summary>
        /// Since the bounds include only part of the background polygon, the area that
        /// needs repainting is really determined by the polygon.
        /// </summary>
        /// <param name="rect"></param>
        /// <param name="view"></param>
        /// <returns>a rectangle in document coordinates that includes the background object</returns>
        /// <seealso cref="M:Northwoods.Go.GoBalloon.ComputeBounds" />
        public override RectangleF ExpandPaintBounds(RectangleF rect, GoView view)
        {
            GoObject background = Background;

            if (background != null)
            {
                rect = GoObject.UnionRect(rect, background.Bounds);
                rect = background.ExpandPaintBounds(rect, view);
            }
            return(rect);
        }