## XmlAttribute::get_OwnerElement method


返回属性所属的 [XmlElement](../../xmlelement/)。

```cpp
virtual SharedPtr<XmlElement> System::Xml::XmlAttribute::get_OwnerElement()
```


### ReturnValue

属性所属的 [XmlElement](../../xmlelement/)，如果该属性不属于任何 [XmlElement](../../xmlelement/)，则为 **nullptr**。

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlElement](../../xmlelement/)
* Class [XmlAttribute](../)
* Namespace [System::Xml](../../)
* Library [Aspose.Font for C++](../../../)
