Aspose::Cells::Properties::ContentTypePropertyCollection class

ContentTypePropertyCollection class

A collection of ContentTypeProperty objects that represent additional information.

class ContentTypePropertyCollection

Methods

MethodDescription
Add(const U16String& name, const U16String& value)Adds content type property information.
Add(const char16_t* name, const char16_t* value)Adds content type property information.
Add(const U16String& name, const U16String& value, const U16String& type)Adds content type property information.
Add(const char16_t* name, const char16_t* value, const char16_t* type)Adds content type property information.
ContentTypePropertyCollection(ContentTypePropertyCollection_Impl* impl)Constructs from an implementation object.
ContentTypePropertyCollection(const ContentTypePropertyCollection& src)Copy constructor.
Get(int32_t index)Gets the content type property by the specific index.
Get(const U16String& name)Gets the content type property by the property name.
Get(const char16_t* name)Gets the content type property by the property name.
GetCount()
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const ContentTypePropertyCollection& src)operator=
~ContentTypePropertyCollection()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