Aspose::Cells::Properties::ContentTypeProperty class
Contents
[
Hide
]ContentTypeProperty class
Represents identifier information.
class ContentTypeProperty
Methods
| Method | Description |
|---|---|
| ContentTypeProperty(ContentTypeProperty_Impl* impl) | Constructs from an implementation object. |
| ContentTypeProperty(const ContentTypeProperty& src) | Copy constructor. |
| GetName() | Returns or sets the name of the object. |
| GetType() | Gets and sets the type of the property. |
| GetValue() | Returns or sets the value of the content type property. |
| IsNillable() | Indicates whether the value could be empty. |
| IsNull() const | Checks whether the implementation object is nullptr. |
| explicit operator bool() const | operator bool() |
| operator=(const ContentTypeProperty& src) | operator= |
| SetIsNillable(bool value) | Indicates whether the value could be empty. |
| SetName(const U16String& value) | Returns or sets the name of the object. |
| SetName(const char16_t* value) | Returns or sets the name of the object. |
| SetType(const U16String& value) | Gets and sets the type of the property. |
| SetType(const char16_t* value) | Gets and sets the type of the property. |
| SetValue(const U16String& value) | Returns or sets the value of the content type property. |
| SetValue(const char16_t* value) | Returns or sets the value of the content type property. |
| ~ContentTypeProperty() | Destructor. |
Fields
| Field | Description |
|---|---|
| _impl | The implementation object. |
Examples
Aspose::Cells::Startup();
//Instantiating a Workbook object
Workbook workbook;
//Add a new property.
workbook.GetContentTypeProperties().Add(u"Admin", u"Aspose", u"text");
//Save the Excel file
workbook.Save(u"book1.xlsm");
Aspose::Cells::Cleanup();
See Also
- Namespace Aspose::Cells::Properties
- Library Aspose.Cells for C++