Aspose::Cells::XmlMapCollection class
Contents
[
Hide
]XmlMapCollection class
A collection of XmlMap objects that represent XmlMap information.
class XmlMapCollection
Methods
Method | Description |
---|---|
Add(const U16String& url) | Add a XmlMap by the url/path of a xml/xsd file. |
Add(const char16_t* url) | Add a XmlMap by the url/path of a xml/xsd file. |
Clear() | Removes all XmlMaps. |
Get(int32_t index) | Gets the xml map by the specific index. |
GetCount() | |
IsNull() const | Checks whether the implementation object is nullptr. |
explicit operator bool() const | operator bool() |
operator=(const XmlMapCollection& src) | operator= |
XmlMapCollection(XmlMapCollection_Impl* impl) | Constructs from an implementation object. |
XmlMapCollection(const XmlMapCollection& src) | Copy constructor. |
~XmlMapCollection() | Destructor. |
Fields
Field | Description |
---|---|
_impl | The implementation object. |
Examples
Aspose::Cells::Startup();
//The following code adds two XmlMaps by a xsd file and a xml file.
Workbook wb;
XmlMapCollection xmlMapCollection = wb.GetWorksheets().GetXmlMaps();
//Add a XmlMap by a xsd file.
xmlMapCollection.Add(u"schema.xsd");
//Add a XmlMap by a xml file.
xmlMapCollection.Add(u"xml.xml");
wb.Save(u"twoXmlMaps.xlsx");
Aspose::Cells::Cleanup();
See Also
- Namespace Aspose::Cells
- Library Aspose.Cells for C++