/// <summary>
        /// Move viewport to display the requested part of area.
        /// </summary>
        /// <param name="rect">Rectangle to display.</param>
        public void BringIntoView(Rectangle rect)
        {
            if (VerticalViewport)
            {
                rect.Width = Viewport.ClientWidth;
            }
            else
            {
                rect.Height = Viewport.ClientHeight;
            }

            // Ask the actual viewport to perform the action
            Viewport.BringIntoView(rect);
        }