Skip to content

cant find Deleted Inserted #153

@billpeace

Description

@billpeace
       using (WordprocessingDocument doc = WordprocessingDocument.Open("testd.docx", true))
        {
            var body = doc.MainDocumentPart.Document.Body;
            List<OpenXmlElement> changes =
           body.Descendants<ParagraphPropertiesChange>()
           //.Where(c => c.Author.Value == authorName)
           .Cast<OpenXmlElement>().ToList();   // number is 0

            List<OpenXmlElement> deletions =
            body.Descendants<Deleted>()
            //.Where(c => c.Author.Value == authorName)
            .Cast<OpenXmlElement>().ToList();   // number is 0

            var insertions =
           body.Descendants<Inserted>()
           //.Where(c => c.Author.Value == authorName)
           .Cast<OpenXmlElement>().ToList();  // number is 0

        }

testd.docx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions