Exemplo n.º 1
0
        /// <summary>
        /// Forms the bounding rectangle.
        /// </summary>
        protected void MakeBoundingRect()
        {
            if (LineRects.Count == 0)
            {
                BoundingRect.Clear();
                return;
            }
            else
            {
                BoundingRect.Set(LineRects[0]);

                for (var i = 1; i < LineRects.Count; i++)
                {
                    BoundingRect.ExpandToInclude(LineRects[i]);
                }
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Clears all.
 /// </summary>
 public void Clear()
 {
     BoundingRect.Clear();
     Lines.Clear();
     LineRects.Clear();
 }