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.
Unfortunately, activation email could not send to your email. Please try again.

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

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.

C#

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.

XAML

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

C#

The properties defined in the window are as follows:

C#

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.

C#

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:

http://www.syncfusion.com/downloads/support/directtrac/general/CustomPropertyUpdated-1951247821.zip

Article ID: Published Date: Last Revised Date: Platform: Control:
3174 01/12/2015 02/09/2015 WPF SpreadsheetControl(Classic)
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.