Export (0) Print
Expand All

ListObject.XmlMap Property

Gets an XmlMap that represents the schema map used for the list.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

XmlMap XmlMap { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.XmlMap
An XmlMap that represents the schema map used for the list.

The following code example displays the name of the XmlMap that is mapped to a ListObject. This example assumes that there is a ListObject named customerListObject on the current worksheet, and that the ListObject uses a schema map.

This example is for a document-level customization.

private void ListObject_XmlMap()
{
    Excel.XmlMap customerXmlMap = customerListObject.XmlMap;
    MessageBox.Show("The current XmlMap for customerListObject is " +
        customerXmlMap.Name.ToString() + ".");
}

Show:
© 2014 Microsoft