public TextShape(string caption, Rectangle rect, LeSerializableShape parent) : base(rect) { this.parent = parent; Initialize(caption, rect); CalculateBoundary(); }
protected void AddShape(BaseShape ob) { xmlShapes.Add(ob); if (ob is AreaShape) { LeSerializableShape friend = (ob as AreaShape).TextField; xmlShapes.Add(friend); ob.FriendIndex = friend.Index; } }