Working with ContentTypeProperties

Contents
[ ]

Aspose.Cells provides Workbook.ContentTypeProperties.Add method to add custom ContentTypeProperties to an excel file. You may also make the property optional by setting the ContentTypeProperty.IsNillable property to true. The following code snippet demonstrates adding optional custom ContentTypeProperties to an excel file. The following image shows both properties that were added by the sample code.

todo:image_alt_text

The output file generated by the sample code is attached for reference.

Output File

Sample Code