## XPathNavigator::MoveTo method


When overridden in a derived class, moves the [XPathNavigator](../) to the same position as the specified [XPathNavigator](../).

```cpp
virtual bool System::Xml::XPath::XPathNavigator::MoveTo(SharedPtr<XPathNavigator> other)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| other | SharedPtr\<XPathNavigator\> | The [XPathNavigator](../) positioned on the node that you want to move to. |

### ReturnValue

**true** if the [XPathNavigator](../) is successful moving to the same position as the specified [XPathNavigator](../); otherwise, **false**. If **false**, the position of the [XPathNavigator](../) is unchanged.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XPathNavigator](../)
* Class [XPathNavigator](../)
* Namespace [System::Xml::XPath](../../)
* Library [Aspose.PUB for C++](../../../)
