예제 #1
0
 public static string CreateRelationshipToPartDefaultId(this OpenXmlPartContainer parent, OpenXmlPart targetPart)
 {
     return(parent.CreateRelationshipToPart(targetPart, parent.GetNextRelationshipId()));
 }
예제 #2
0
 public static TPart AddNewPartDefaultId <TPart>(this OpenXmlPartContainer parent, out string id) where TPart : OpenXmlPart, IFixedContentTypePart
 {
     id = parent.GetNextRelationshipId();
     return(parent.AddNewPart <TPart>(id));
 }