Skip to main content
A newer version of this page is available. .
Row

DocumentCustomProperties.Clear() Method

Removes all the custom document properties from a workbook.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v18.2.Core.dll

Declaration

void Clear()

Remarks

Use the Clear method to delete all user defined properties from a workbook. To remove an individual custom document property, get access to this property by its name (using the DocumentCustomProperties.Item property) and set it to null (Nothing in VB).

Example

The example below demonstrates how to remove all the custom document properties from a workbook.

' Remove all custom document properties.
workbook.DocumentProperties.Custom.Clear()
See Also