ContentTypeProperty Class |
Namespace: Aspose.Cells.Properties
The ContentTypeProperty type exposes the following members.
Name | Description | |
---|---|---|
![]() | IsNillable |
Indicates whether the value could be empty.
|
![]() | Name |
Returns or sets the name of the object.
|
![]() | Type |
Gets and sets the type of the property.
|
![]() | Value |
Returns or sets the value of the content type property.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
[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")