ContentTypeProperty.IsNillable
ContentTypeProperty.IsNillable property
Indicates whether the value could be empty.
public bool IsNillable { get; set; }
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.Properties;
namespace AsposeCellsExamples
{
public class ContentTypePropertyPropertyIsNillableDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
// Add a content type property
workbook.ContentTypeProperties.Add("Admin", "Aspose", "text");
// Access the property and set IsNillable
ContentTypeProperty property = workbook.ContentTypeProperties["Admin"];
property.IsNillable = true;
// Verify and output the IsNillable value
Console.WriteLine($"Property 'Admin' IsNillable: {property.IsNillable}");
workbook.Save("ContentTypePropertyIsNillableDemo.xlsx");
}
}
}
See Also
- class ContentTypeProperty
- namespace Aspose.Cells.Properties
- assembly Aspose.Cells