[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Workbook.CustomDocumentProperties

CustomDocumentProperties Property

CustomDocumentProperties

Gets the collection of custom document properties in the workbook.

Use the returned ICustomDocumentPropertyCollection to add, remove, and retrieve workbook metadata defined by the application, such as string, numeric, Boolean, date, or linked-content properties.

Declaration
public ICustomDocumentPropertyCollection CustomDocumentProperties { get; }
Public ReadOnly Property CustomDocumentProperties As ICustomDocumentPropertyCollection
Implements
Examples
worksheet.Range["A1"].Value = "Quarterly Report";
workbook.Names.Add("ReportTitle", "=Sheet1!$A$1");
ICustomDocumentPropertyCollection properties = workbook.CustomDocumentProperties;
properties.Add("Department", "Finance");
properties.AddLinkToContent("TitleProperty", "ReportTitle");