/** * Add a new child POIXMLDocumentPart * * @param pr the relationship of the child * @param part the child to add */ private void AddRelation(PackageRelationship pr, POIXMLDocumentPart part) { if (relations.ContainsKey(pr.Id)) { relations[pr.Id] = new RelationPart(pr, part); } else { relations.Add(pr.Id, new RelationPart(pr, part)); } part.IncrementRelationCounter(); }
/** * Add a new child POIXMLDocumentPart * * @param part the child to add */ public void AddRelation(String id, POIXMLDocumentPart part) { relations[id] = part; part.IncrementRelationCounter(); }
/** * Add a new child POIXMLDocumentPart * * @param part the child to add */ public void AddRelation(String id, POIXMLDocumentPart part) { relations[id] = part; part.IncrementRelationCounter(); }