Partager via


XPath.Clear Method

Clears the schema mapping from the cells mapped to the specified XPath.

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

Syntax

'Declaration
Sub Clear
'Usage
Dim instance As XPath

instance.Clear()
void Clear()

Remarks

This method does not clear the data from the cells mapped to the specified XPath. Use the Clear method of the Range object to clear the data from the cells.

If the specified XPath is mapped in an XML list, then the schema mapping is removed, but the list is not deleted from the worksheet.

See Also

Reference

XPath Interface

XPath Members

Microsoft.Office.Interop.Excel Namespace