Exemple #1
0
        public bool DeleteFromTree(Shape s)
        {
            foreach (VisioShape c in Children)
            {
                if (c.Shape.Equals(s))
                {
                    Children.Remove(c);
                    AlternativesContainer container = c as AlternativesContainer;
                    container?.RemoveAlternativesFromModel();
                    return(true);
                }

                if (c is RationallyContainer)
                {
                    RationallyContainer container = c as RationallyContainer;
                    if (container.DeleteFromTree(s))
                    {
                        return(true);
                    }
                }
            }
            return(false);
        }
 public InlineLayout(RationallyContainer toManage)
 {
     this.toManage = toManage;
 }
 public VerticalStretchLayout(RationallyContainer toManage)
 {
     this.toManage = toManage;
 }