public bool RemoveShape(HSSFShape shape) { bool isRemoved = GetEscherContainer().RemoveChildRecord(shape.GetEscherContainer()); if (isRemoved) { shape.AfterRemove(this.Patriarch); shapes.Remove(shape); } return(isRemoved); }
/** * @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); }
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(); }
/** * @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; }
public bool RemoveShape(HSSFShape shape) { bool isRemoved = GetEscherContainer().RemoveChildRecord(shape.GetEscherContainer()); if (isRemoved) { shape.AfterRemove(this.Patriarch); shapes.Remove(shape); } return isRemoved; }