BuiltInDocumentProperties
PlainTextDocument.BuiltInDocumentProperties property
ObtientBuiltInDocumentProperties
du document.
public BuiltInDocumentProperties BuiltInDocumentProperties { get; }
Exemples
Montre comment charger le contenu d’un document Microsoft Word en texte brut, puis accéder aux propriétés intégrées du document d’origine.
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);
Voir également
- class BuiltInDocumentProperties
- class PlainTextDocument
- espace de noms Aspose.Words
- Assemblée Aspose.Words