Aspose::Cells::Properties::ContentTypeProperty class

ContentTypeProperty class

Represents identifier information.

class ContentTypeProperty

Methods

MethodDescription
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() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator 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

FieldDescription
_implThe 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