Esempio n. 1
0
        public bool RemoveShape(HSSFShape shape)
        {
            bool isRemoved = GetEscherContainer().RemoveChildRecord(shape.GetEscherContainer());

            if (isRemoved)
            {
                shape.AfterRemove(this.Patriarch);
                shapes.Remove(shape);
            }
            return(isRemoved);
        }
Esempio n. 2
0
        /**
         * @param shape to be removed
         * @return true of shape is removed
         */
        public bool RemoveShape(HSSFShape shape)
        {
            bool isRemoved = _mainSpgrContainer.RemoveChildRecord(shape.GetEscherContainer());

            if (isRemoved)
            {
                shape.AfterRemove(this);
                _shapes.Remove(shape);
            }
            return(isRemoved);
        }
Esempio n. 3
0
 internal override void AfterRemove(HSSFPatriarch patriarch)
 {
     patriarch.GetBoundAggregate().RemoveShapeToObjRecord(GetEscherContainer().ChildContainers[0]
                                                          .GetChildById(EscherClientDataRecord.RECORD_ID));
     for (int i = 0; i < shapes.Count; i++)
     {
         HSSFShape shape = (HSSFShape)shapes[i];
         RemoveShape(shape);
         shape.AfterRemove(Patriarch);
     }
     shapes.Clear();
 }
Esempio n. 4
0
 /**
  * @param shape to be removed
  * @return true of shape is removed
  */
 public bool RemoveShape(HSSFShape shape)
 {
     bool isRemoved = _mainSpgrContainer.RemoveChildRecord(shape.GetEscherContainer());
     if (isRemoved)
     {
         shape.AfterRemove(this);
         _shapes.Remove(shape);
     }
     return isRemoved;
 }
Esempio n. 5
0
 public bool RemoveShape(HSSFShape shape)
 {
     bool isRemoved = GetEscherContainer().RemoveChildRecord(shape.GetEscherContainer());
     if (isRemoved)
     {
         shape.AfterRemove(this.Patriarch);
         shapes.Remove(shape);
     }
     return isRemoved;
 }