BuiltInDocumentProperties
PlainTextDocument.BuiltInDocumentProperties property
Gets BuiltInDocumentProperties
of the document.
public BuiltInDocumentProperties BuiltInDocumentProperties { get; }
Examples
Shows how to load the contents of a Microsoft Word document in plaintext and then access the original document’s built-in properties.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.Writeln("Hello world!");
doc.BuiltInDocumentProperties.Author = "John Doe";
doc.Save(ArtifactsDir + "PlainTextDocument.BuiltInProperties.docx");
PlainTextDocument plaintext = new PlainTextDocument(ArtifactsDir + "PlainTextDocument.BuiltInProperties.docx");
Assert.AreEqual("Hello world!", plaintext.Text.Trim());
Assert.AreEqual("John Doe", plaintext.BuiltInDocumentProperties.Author);
See Also
- class BuiltInDocumentProperties
- class PlainTextDocument
- namespace Aspose.Words
- assembly Aspose.Words