protected override EscherContainerRecord CreateSpContainer() { EscherContainerRecord spContainer = base.CreateSpContainer(); EscherOptRecord opt = (EscherOptRecord)spContainer.GetChildById(EscherOptRecord.RECORD_ID); opt.RemoveEscherProperty(EscherProperties.LINESTYLE__LINEDASHING); opt.RemoveEscherProperty(EscherProperties.LINESTYLE__NOLINEDRAWDASH); spContainer.RemoveChildRecord(spContainer.GetChildById(EscherTextboxRecord.RECORD_ID)); return(spContainer); }
/** * @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); }