使用ContentTypeProperties
Contents
[
Hide
]
Aspose.Cells for Python via .NET提供Workbook.content_type_properties.add()方法以向Excel文件添加自定义ContentTypeProperties。您还可以通过设置ContentTypeProperty.is_nillable属性为true来使该属性可选。以下代码片段演示了添加可选的自定义ContentTypeProperties。下图显示了由示例代码添加的两个属性。
由示例代码生成的输出文件附在下方以供参考。