Partager via


XmlMap Members

Include Protected Members
Include Inherited Members

Represents an XML map that has been added to a workbook.

The XmlMap type exposes the following members.

Properties

  Name Description
Public property _Default Infrastructure.
Public property AdjustColumnWidth True if the column widths are automatically adjusted for the best fit each time you refresh the specified query table or XML map. False if the column widths aren’t automatically adjusted with each refresh. The default value is True. Read/write Boolean.
Public property AppendOnImport True if you want to append new rows to XML lists that are bound to the specified schema map when you are importing new data or refreshing an existing connection. False if you want to overwrite the contents of cells. The default value is False. Read/write Boolean.
Public property Application Returns an Application object that represents the Microsoft Excel application. Read-only.
Public property Creator Returns a 32-bit integer that indicates the application in which this object was created. If the object was created in Microsoft Excel, this property returns the string XCEL, which is equivalent to the hexadecimal number 5843454C. Read-only XlCreator.
Public property DataBinding Returns an XmlDataBinding object that represents the binding associated with the specified schema map. Read-only.
Public property IsExportable Returns True if Microsoft Excel can use the XPath objects in the specified schema map to export XML data and if all XML lists mapped to the specified schema map can be exported. Read-only Boolean.
Public property Name Returns or sets the friendly name used to uniquely identify a mapping in the workbook. Read/write String.
Public property Parent Returns the parent object for the specified object. Read-only.
Public property PreserveColumnFilter Returns or sets whether filtering is preserved when the specified XML map is refreshed. Read/write Boolean.
Public property PreserveNumberFormatting True if number formatting on cells mapped to the specified XML schema map will be preserved when the schema map is refreshed. The default value is False. Read/write Boolean.
Public property RootElementName Returns a String that represents the name of the root element for the specified XML schema map. Read-only.
Public property RootElementNamespace Returns an XmlNamespace object that represents the root element for the specified XML schema map. Read-only.
Public property SaveDataSourceDefinition True if the data source definition of the specified XML schema map is saved with the workbook. The default value is True. Read/write Boolean.
Public property Schemas Returns an XmlSchemas collection that represents the schemas that the specified XmlMap object contains. Read-only.
Public property ShowImportExportValidationErrors Returns or sets whether to display a dialog box that details schema-validation errors when data is imported or exported through the specified XML schema map. The default value is False. Read/write Boolean.
Public property WorkbookConnection Retuns a new connection for the specified XmlMap object. Read-only.

Top

Methods

  Name Description
Public method Delete Removes the specified XML map from the workbook.
Public method Export Exports the contents of cells mapped to the specified XmlMap object to an XML data file. Returns XlXmlExportResult.
Public method ExportXml Exports the contents of cells mapped to the specified XmlMap object to a String variable. Returns XlXmlExportResult.
Public method Import Imports data from the specified XML data file into cells that have been mapped to the specified XmlMap object. Returns XlXmlImportResult.
Public method ImportXml Imports XML data from a String variable into cells that have been mapped to the specified XmlMap object. Returns an XlXmlImportResult constant.

Top

See Also

Reference

XmlMap Interface

Microsoft.Office.Interop.Excel Namespace