Class XmlMapCollection

Class XmlMapCollection

Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)

A collection of Aspose.Cells.XmlMap objects that represent XmlMap information.

public class XmlMapCollection : CollectionBase<xmlmap>, IList<xmlmap>, ICollection<xmlmap>, IEnumerable<xmlmap>, ICollection, IEnumerable

Inheritance

objectCollectionBase<xmlmap>XmlMapCollection

Implements

IList<xmlmap>, ICollection<xmlmap>, IEnumerable<xmlmap>, ICollection, IEnumerable

Inherited Members

CollectionBase<xmlmap>.BinarySearch(XmlMap), CollectionBase<xmlmap>.BinarySearch(XmlMap, IComparer<xmlmap>), CollectionBase<xmlmap>.BinarySearch(int, int, XmlMap, IComparer<xmlmap>), CollectionBase<xmlmap>.Contains(XmlMap), CollectionBase<xmlmap>.CopyTo(XmlMap[]), CollectionBase<xmlmap>.CopyTo(XmlMap[], int), CollectionBase<xmlmap>.CopyTo(int, XmlMap[], int, int), CollectionBase<xmlmap>.Exists(Predicate<xmlmap>), CollectionBase<xmlmap>.Find(Predicate<xmlmap>), CollectionBase<xmlmap>.FindAll(Predicate<xmlmap>), CollectionBase<xmlmap>.FindIndex(Predicate<xmlmap>), CollectionBase<xmlmap>.FindIndex(int, Predicate<xmlmap>), CollectionBase<xmlmap>.FindIndex(int, int, Predicate<xmlmap>), CollectionBase<xmlmap>.FindLast(Predicate<xmlmap>), CollectionBase<xmlmap>.FindLastIndex(Predicate<xmlmap>), CollectionBase<xmlmap>.FindLastIndex(int, Predicate<xmlmap>), CollectionBase<xmlmap>.FindLastIndex(int, int, Predicate<xmlmap>), CollectionBase<xmlmap>.IndexOf(XmlMap), CollectionBase<xmlmap>.IndexOf(XmlMap, int), CollectionBase<xmlmap>.IndexOf(XmlMap, int, int), CollectionBase<xmlmap>.LastIndexOf(XmlMap), CollectionBase<xmlmap>.LastIndexOf(XmlMap, int), CollectionBase<xmlmap>.LastIndexOf(XmlMap, int, int), CollectionBase<xmlmap>.GetEnumerator(), CollectionBase<xmlmap>.Clear(), CollectionBase<xmlmap>.RemoveAt(int), CollectionBase<xmlmap>.OnClearComplete(), CollectionBase<xmlmap>.OnClear(), CollectionBase<xmlmap>.Capacity, CollectionBase<xmlmap>.Count, CollectionBase<xmlmap>.InnerList, CollectionBase<xmlmap>.this[int], object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

this[int]

Gets the xml map by the specific index.

public XmlMap this[int index] { get; }

Property Value

XmlMap

Methods

Add(string)

Add a Aspose.Cells.XmlMap by the url/path of a xml/xsd file.

public int Add(string url)

Parameters

url string

url/path of a xml/xsd file.

Returns

int

Aspose.Cells.XmlMap object index.

Examples

The following code adds two XmlMaps by a xsd file and a xml file.

csharp
Workbook wb = new Workbook();

XmlMapCollection xmlMapCollection = wb.Worksheets.XmlMaps;

//Add a XmlMap by a xsd file.
xmlMapCollection.Add("schema.xsd");

//Add a XmlMap by a xml file.
xmlMapCollection.Add("xml.xml");

wb.Save("twoXmlMaps.xlsx");

Clear()

Removes all XmlMaps.

public void Clear()

</xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap></xmlmap>