ReplaceRange()
XPathNavigator::ReplaceRange(SharedPtr<XPathNavigator>) method
Replaces a range of sibling nodes from the current node to the node specified.
virtual SharedPtr<XmlWriter> System::Xml::XPath::XPathNavigator::ReplaceRange(SharedPtr<XPathNavigator> lastSiblingToReplace)
Arguments
| Parameter | Type | Description |
|---|---|---|
| lastSiblingToReplace | SharedPtr<XPathNavigator> | An XPathNavigator positioned on the last sibling node in the range to replace. |
Return Value
An XmlWriter object used to specify the replacement range.
Exceptions
| Exception | Description |
|---|---|
| ArgumentNullException | The XPathNavigator specified is nullptr. |
| NotSupportedException | The XPathNavigator does not support editing. |
| InvalidOperationException | The last node to replace specified is not a valid sibling node of the current node. |
See Also
- Typedef SharedPtr
- Class XmlWriter
- Class XPathNavigator
- Namespace System::Xml::XPath
- Library Aspose.Slides