private void ValidateDocXNumberingPartExists() { Uri uri = new Uri("/word/numbering.xml", UriKind.Relative); if (!base.Document.package.PartExists(uri)) { base.Document.numbering = HelperFunctions.AddDefaultNumberingXml(base.Document.package); } }
private void ValidateDocXNumberingPartExists() { var numberingUri = new Uri("/word/numbering.xml", UriKind.Relative); // If the internal document contains no /word/numbering.xml create one. if (!Document.package.PartExists(numberingUri)) { Document.numbering = HelperFunctions.AddDefaultNumberingXml(Document.package); } }