コード例 #1
0
ファイル: POIXMLDocumentPart.cs プロジェクト: zzy092/npoi
 /**
  * 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();
 }
コード例 #2
0
 /**
  * Add a new child POIXMLDocumentPart
  *
  * @param part the child to add
  */
 public void AddRelation(String id, POIXMLDocumentPart part)
 {
     relations[id] = part;
     part.IncrementRelationCounter();
 }
コード例 #3
0
ファイル: POIXMLDocumentPart.cs プロジェクト: 89sos98/npoi
 /**
  * Add a new child POIXMLDocumentPart
  *
  * @param part the child to add
  */
 public void AddRelation(String id, POIXMLDocumentPart part)
 {
     relations[id] = part;
     part.IncrementRelationCounter();
 }