Workbook.BuiltInDocumentProperties
Workbook.BuiltInDocumentProperties property
Returns a DocumentProperty
collection that represents all the built-in document properties of the spreadsheet.
public BuiltInDocumentPropertyCollection BuiltInDocumentProperties { get; }
Remarks
A new property cannot be added to built-in document properties list. You can only get a built-in property and change its value. The following is the built-in properties name list:
Title
Subject
Author
Keywords
Comments
Template
Last Author
Revision Number
Application Name
Last Print Date
Creation Date
Last Save Time
Total Editing Time
Number of Pages
Number of Words
Number of Characters
Security
Category
Format
Manager
Company
Number of Bytes
Number of Lines
Number of Paragraphs
Number of Slides
Number of Notes
Number of Hidden Slides
Number of Multimedia Clips
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.Properties;
namespace AsposeCellsExamples
{
public class WorkbookPropertyBuiltInDocumentPropertiesDemo
{
public static void Run()
{
// Create a new workbook
Workbook workbook = new Workbook();
// Access and modify built-in document properties
DocumentProperty authorProperty = workbook.BuiltInDocumentProperties["Author"];
authorProperty.Value = "John Smith";
DocumentProperty titleProperty = workbook.BuiltInDocumentProperties["Title"];
titleProperty.Value = "Sample Workbook";
// Display the modified properties
Console.WriteLine("Author: " + workbook.BuiltInDocumentProperties["Author"].Value);
Console.WriteLine("Title: " + workbook.BuiltInDocumentProperties["Title"].Value);
}
}
}
See Also
- class BuiltInDocumentPropertyCollection
- class Workbook
- namespace Aspose.Cells
- assembly Aspose.Cells