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