---
title: "Aspose::Page::XPS::XpsModel::XpsElement::begin method"
url: "https://reference.aspose.com/page/cpp/aspose.page.xps.xpsmodel/xpselement/begin/"
product: "Aspose.Page for C++"
description: "Aspose::Page::XPS::XpsModel::XpsElement::begin method. Gets iterator pointing to the first element (if any) of the const-qualified instance of the collection in C++."
---

## XpsElement::begin() const method


Gets iterator pointing to the first element (if any) of the const-qualified instance of the collection.

```cpp
const_iterator Aspose::Page::XPS::XpsModel::XpsElement::begin() const noexcept
```


### ReturnValue

An iterator pointing to the first element (if any) of the const-qualified instance of the collection

## See Also

* Typedef [const_iterator](../const_iterator/)
* Class [XpsElement](../)
* Namespace [Aspose::Page::XPS::XpsModel](../../)
* Library [Aspose.Page for C++](../../../)
## XpsElement::begin() method


Gets iterator pointing to the first element (if any) of the collection.

```cpp
iterator Aspose::Page::XPS::XpsModel::XpsElement::begin() noexcept
```


### ReturnValue

An iterator pointing to the first element (if any) of the collection

## See Also

* Typedef [iterator](../iterator/)
* Class [XpsElement](../)
* Namespace [Aspose::Page::XPS::XpsModel](../../)
* Library [Aspose.Page for C++](../../../)
