BuiltInDocumentPropertiesCategory Property |
Namespace: Aspose.Words.Properties
// Create a blank document Document doc = new Document(); // The properties we will work with are members of the BuiltInDocumentProperties attribute BuiltInDocumentProperties properties = doc.BuiltInDocumentProperties; // Set the values of some descriptive properties // These are metadata that can be glanced at without opening the document in the "Details" or "Content" folder views in Windows Explorer // The "Details" view has columns dedicated to these properties // Fields such as AUTHOR, SUBJECT, TITLE etc. can be used to display these values inside the document properties.Author = "John Doe"; properties.Title = "John's Document"; properties.Subject = "My subject"; properties.Category = "My category"; properties.Comments = $"This is {properties.Author}'s document about {properties.Subject}"; // Tags can be used as keywords and are separated by semicolons properties.Keywords = "Tag 1; Tag 2; Tag 3"; // When right clicking the document file in Windows Explorer, these properties are found in Properties > Details > Description doc.Save(ArtifactsDir + "Properties.Description.docx");