Partager via


ListObject.XmlMap Property

Definition

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

public:
 property Microsoft::Office::Interop::Excel::XmlMap ^ XmlMap { Microsoft::Office::Interop::Excel::XmlMap ^ get(); };
public Microsoft.Office.Interop.Excel.XmlMap XmlMap { get; }
member this.XmlMap : Microsoft.Office.Interop.Excel.XmlMap
Public ReadOnly Property XmlMap As XmlMap

Property Value

An XmlMap that represents the schema map used for the list.

Examples

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() + ".");
}
Private Sub ListObject_XmlMap() 
    Dim customerXmlMap As Excel.XmlMap = _
        customerListObject.XmlMap
    MessageBox.Show("The current XmlMap for customerListObject is " & _
        customerXmlMap.Name.ToString() & ".")
End Sub

Applies to