BuiltInDocumentPropertiesCategory Property

Gets or sets the category of the document.

Namespace:  Aspose.Words.Properties
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public string Category { get; set; }

Property Value

Type: String
Examples
Shows how to work with document properties in the "Description" category.
// 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");
See Also