Class ContentTypeProperty

ContentTypeProperty class

Represents identifier information.

public class ContentTypeProperty

Properties

NameDescription
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


[C#]

//Instantiating a Workbook object
Workbook workbook = new Workbook();
//Add a new property.
 workbook.ContentTypeProperties.Add("Admin", "Aspose", "text");
//Save the Excel file
workbook.Save("book1.xlsm");

 [Visual Basic]

'Instantiating a Workbook object
Dim workbook As Workbook = New Workbook()
'Add a new property.
 workbook.ContentTypeProperties.Add("Admin", "Aspose", "text")
'Save the Excel file
workbook.Save("book1.xlsm")

See Also