WordOpenXML

StructuredDocumentTag.WordOpenXML property

Ruft eine Zeichenfolge ab, die das im Knoten im enthaltene XML darstelltFlatOpc format.

public string WordOpenXML { get; }

Beispiele

Zeigt, wie im Knoten enthaltenes XML im FlatOpc-Format abgerufen wird.

Document doc = new Document(MyDir + "Structured document tags.docx");

List<StructuredDocumentTag> tags = doc.GetChildNodes(NodeType.StructuredDocumentTag, true)
    .OfType<StructuredDocumentTag>().ToList();

Assert.True(tags[0].WordOpenXML
    .Contains(
        "<pkg:part pkg:name=\"/docProps/app.xml\" pkg:contentType=\"application/vnd.openxmlformats-officedocument.extended-properties+xml\">"));

Siehe auch