BuiltInDocumentPropertyCollection.ContentStatus
BuiltInDocumentPropertyCollection.ContentStatus property
Gets or sets the content status of the document.
public string ContentStatus { get; set; }
Examples
using System;
using Aspose.Cells;
namespace AsposeCellsExamples
{
public class BuiltInDocumentPropertyCollectionPropertyContentStatusDemo
{
public static void Run()
{
// Create a new workbook
Workbook workbook = new Workbook();
// Set built-in document properties including ContentStatus
workbook.BuiltInDocumentProperties.ContentStatus = "Draft";
workbook.BuiltInDocumentProperties.Author = "John Doe";
workbook.BuiltInDocumentProperties.Title = "Sample Document";
// Save the workbook
workbook.Save("DocumentWithContentStatus.xlsx", SaveFormat.Xlsx);
// Load the saved workbook to verify properties
Workbook loadedWorkbook = new Workbook("DocumentWithContentStatus.xlsx");
// Display the ContentStatus property
Console.WriteLine("Content Status: " + loadedWorkbook.BuiltInDocumentProperties.ContentStatus);
}
}
}
See Also
- class BuiltInDocumentPropertyCollection
- namespace Aspose.Cells.Properties
- assembly Aspose.Cells