## XmlReader::ReadElementContentAsDecimal() method


Reads the current element and returns the contents as a [Decimal](../../../system/decimal/) object.

```cpp
virtual Decimal System::Xml::XmlReader::ReadElementContentAsDecimal()
```


### ReturnValue

The element content as a [Decimal](../../../system/decimal/) object.

## See Also

* Class [Decimal](../../../system/decimal/)
* Class [XmlReader](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
## XmlReader::ReadElementContentAsDecimal(String, String) method


Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a [Decimal](../../../system/decimal/) object.

```cpp
virtual Decimal System::Xml::XmlReader::ReadElementContentAsDecimal(String localName, String namespaceURI)
```


| Parameter | Type | Description |
| --- | --- | --- |
| localName | String | The local name of the element. |
| namespaceURI | String | The namespace URI of the element. |

### ReturnValue

The element content as a [Decimal](../../../system/decimal/) object.

## See Also

* Class [Decimal](../../../system/decimal/)
* Class [String](../../../system/string/)
* Class [XmlReader](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
