We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to create a Custom Property window and add custom document properties in the Spreadsheet control?

Platform: WPF |
Control: SpreadsheetControl

Document properties, also known as metadata, are details about a file that describe or identify it. Document properties include details such as title, author name, subject, keywords, etc. You can add custom document properties to the workbook as given in the following code sample.


Adding Custom Document Properties through User Interface, that is, Custom Property Window:

The Spreadsheet control allows you to manually create the Custom Property window, where you can add the custom document properties as done in Excel such as Name, Type and Value. The following code example shows how to create a custom property window in XAML.


To create an Observable collection to maintain the Custom properties of the Workbook:


The properties defined in the window are as follows:


By clicking the Add button in the Custom Property window, the properties of the Workbook that were entered are stored in the CustomDocumentProperties of the Workbook.


The following image is a screenshot of the Custom Property window.

Figure 1: Custom Property window

You can also add the custom property by entering the property’s name, type, and value in the text boxes and clicking the Add button in the Property window.

Sample Link:


2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile