[]
A collection of custom document properties.
Represents the custom metadata stored in a workbook. Use this collection to add, remove, and access application-defined document properties such as text, numeric, Boolean, date, and linked-content properties.
public interface ICustomDocumentPropertyCollection : IDocumentPropertyCollection
Public Interface ICustomDocumentPropertyCollection
Inherits IDocumentPropertyCollection
ICustomDocumentPropertyCollection properties = workbook.CustomDocumentProperties;
properties.Add("Department", "Sales");
properties.Add("Revision", 3);
string fileName = "CustomDocumentProperties.xlsx";
workbook.Save(fileName);
| Name | Description |
|---|---|
| Add(string, bool) | Creates a new IDocumentProperty with a Boolean value and adds it to the custom document properties available for the current Workbook. |
| Add(string, DateTime) | Creates a new IDocumentProperty with a date and time value and adds it to the custom document properties available for the current Workbook. |
| Add(string, double) | Creates a new IDocumentProperty with a double-precision floating-point value and adds it to the custom document properties of the current Workbook. |
| Add(string, int) | Creates a new custom document property with an integer value and adds it to the current Workbook. |
| Add(string, string) | Creates a new IDocumentProperty with a string value and adds it to the custom document properties available for the current Workbook. |
| AddLinkToContent(string, string) | Creates a new IDocumentProperty that is linked to workbook content and adds it to the custom document properties of the current Workbook. |