Skip to main content

XlCustomPropertyValue Struct

Represents the value of a custom document property.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core


public struct XlCustomPropertyValue

The following members return XlCustomPropertyValue objects:


To set the value of a custom document property, you can directly assign the XlDocumentCustomProperties.Item property to an object of the String, Double, DateTime or Boolean type. The specified object will be automatically converted to the XlCustomPropertyValue object

To obtain the type of data assigned to a custom document property, use the XlCustomPropertyValue.Type property. To get an object of the corresponding type from the XlCustomPropertyValue object, use the XlCustomPropertyValue.TextValue, XlCustomPropertyValue.NumericValue, XlCustomPropertyValue.DateTimeValue or XlCustomPropertyValue.BooleanValue property.

For an example of how to define built-in and custom document properties for a workbook, refer to the How to: Specify Document Properties for a Workbook article.

See Also