Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
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.

The output file generated by the sample code is attached for reference.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.