WorksheetCollection.BuiltInDocumentProperties
WorksheetCollection.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 WorksheetCollectionPropertyBuiltInDocumentPropertiesDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
DocumentProperty authorProperty = workbook.Worksheets.BuiltInDocumentProperties["Author"];
authorProperty.Value = "John Smith";
DocumentProperty titleProperty = workbook.Worksheets.BuiltInDocumentProperties["Title"];
titleProperty.Value = "Sample Document";
Console.WriteLine("Document properties set successfully");
}
}
}
See Also
- class BuiltInDocumentPropertyCollection
- class WorksheetCollection
- namespace Aspose.Cells
- assembly Aspose.Cells