Back to Devexpress

DocumentProperties.Category Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-documentproperties-3edbba3b.md

latest5.8 KB
Original Source

DocumentProperties.Category Property

Gets or sets the categorization of the document content (e.g. Resume, Letter, Financial Forecast, Proposal, Technical Presentation, and so on).

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
string Category { get; set; }
vb
Property Category As String

Property Value

TypeDescription
String

A string of text that specifies the category name.

|

Remarks

This value is intended to facilitate navigation of a large set of documents.

The Category property allows you to specify one of the core document properties, a full set of which is available with the Document.DocumentProperties property. To specify a custom document property, use the Document.CustomProperties property.

End-users can edit the Category value in the Document Properties Dialog.

Use the DOCPROPERTY field to insert the Category value in the document.

Note

The Category property is not supported in ODT and HTML documents.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Category property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/DocumentProperties.cs#L17

csharp
document.DocumentProperties.Title = "Inserting Custom Properties";
document.DocumentProperties.Category = "TestDoc";
document.DocumentProperties.Description = "This code demonstrates API to modify and display standard document properties.";

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/DocumentPropertiesActions.cs#L20

csharp
document.DocumentProperties.Title = "Inserting Custom Properties";
document.DocumentProperties.Category = "TestDoc";
document.DocumentProperties.Description = "This code demonstrates API to modify and display standard document properties.";

word-document-api-examples/CS/CodeExamples/DocumentPropertiesActions.cs#L28

csharp
document.DocumentProperties.Title = "Inserting Custom Properties";
document.DocumentProperties.Category = "TestDoc";
document.DocumentProperties.Description = "This code demonstrates API to modify and display standard document properties.";

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/DocumentProperties.vb#L17

vb
document.DocumentProperties.Title = "Inserting Custom Properties"
document.DocumentProperties.Category = "TestDoc"
document.DocumentProperties.Description = "This code demonstrates API to modify and display standard document properties."

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/DocumentPropertiesActions.vb#L17

vb
document.DocumentProperties.Title = "Inserting Custom Properties"
document.DocumentProperties.Category = "TestDoc"
document.DocumentProperties.Description = "This code demonstrates API to modify and display standard document properties."

word-document-api-examples/VB/CodeExamples/DocumentPropertiesActions.vb#L26

vb
document.DocumentProperties.Title = "Inserting Custom Properties"
document.DocumentProperties.Category = "TestDoc"
document.DocumentProperties.Description = "This code demonstrates API to modify and display standard document properties."

See Also

DocumentProperties Interface

DocumentProperties Members

DevExpress.XtraRichEdit.API.Native Namespace