Class ContentTypeProperty
Contents
[
Hide
]ContentTypeProperty class
Represents identifier information.
public class ContentTypeProperty
Properties
Name | Description |
---|---|
IsNillable { get; set; } | Indicates whether the value could be empty. |
Name { get; set; } | Returns or sets the name of the object. |
Type { get; set; } | Gets and sets the type of the property. |
Value { get; set; } | Returns or sets the value of the content type property. |
Examples
namespace AsposeCellsExamples
{
using Aspose.Cells;
using Aspose.Cells.Properties;
using System;
public class ContentTypePropertyDemo
{
public static void ContentTypePropertyExample()
{
// Instantiating a Workbook object
Workbook workbook = new Workbook();
// Add a new content type property
workbook.ContentTypeProperties.Add("Admin", "Aspose", "text");
// Access the newly added property
ContentTypeProperty property = workbook.ContentTypeProperties["Admin"];
// Setting properties
property.Name = "Admin";
property.Value = "Aspose";
property.Type = "text";
property.IsNillable = true;
// Save the Excel file
workbook.Save("ContentTypePropertyExample.xlsx");
workbook.Save("ContentTypePropertyExample.pdf");
return;
}
}
}
See Also
- namespace Aspose.Cells.Properties
- assembly Aspose.Cells