## XPathNavigator::MoveTo method


当在派生类中被重写时，将 [XPathNavigator](../) 移动到与指定的 [XPathNavigator](../) 相同的位置。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| other | SharedPtr\<XPathNavigator\> | 定位在您想要移动到的节点上的 [XPathNavigator](../)。 |

### 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.

## 另见

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