## XmlReader::ReadElementContentAsFloat() method


读取当前元素并将内容返回为单精度浮点数。

```cpp
virtual float System::Xml::XmlReader::ReadElementContentAsFloat()
```


### ReturnValue

元素内容，以单精度浮点数表示。

## 另见

* Class [XmlReader](../)
* Namespace [System::Xml](../../)
* Library [Aspose.Font for C++](../../../)
## XmlReader::ReadElementContentAsFloat(String, String) method


检查指定的本地名称和命名空间 URI 是否与当前元素匹配，然后读取当前元素并将内容返回为单精度浮点数。

```cpp
virtual float System::Xml::XmlReader::ReadElementContentAsFloat(String localName, String namespaceURI)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| localName | String | 元素的本地名称。 |
| namespaceURI | String | 元素的命名空间 URI。 |

### ReturnValue

元素内容，以单精度浮点数表示。

## 另见

* Class [String](../../../system/string/)
* Class [XmlReader](../)
* Namespace [System::Xml](../../)
* Library [Aspose.Font for C++](../../../)
