コード例 #1
0
        public bool RemoveShape(HSSFShape shape)
        {
            bool isRemoved = GetEscherContainer().RemoveChildRecord(shape.GetEscherContainer());

            if (isRemoved)
            {
                shape.AfterRemove(this.Patriarch);
                shapes.Remove(shape);
            }
            return(isRemoved);
        }
コード例 #2
0
ファイル: HSSFPatriarch.cs プロジェクト: flowbywind/npoi
        /**
         * @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);
        }
コード例 #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();
 }
コード例 #4
0
ファイル: HSSFPatriarch.cs プロジェクト: mdjasim/npoi
 /**
  * @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;
 }
コード例 #5
0
ファイル: HSSFShapeGroup.cs プロジェクト: WPG/npoi
 public bool RemoveShape(HSSFShape shape)
 {
     bool isRemoved = GetEscherContainer().RemoveChildRecord(shape.GetEscherContainer());
     if (isRemoved)
     {
         shape.AfterRemove(this.Patriarch);
         shapes.Remove(shape);
     }
     return isRemoved;
 }