## UserProperties::GetPropertyFloat(System::String) method


获取浮点属性值。

```cpp
virtual float Aspose::Page::UserProperties::GetPropertyFloat(System::String key)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 键 | System::String | 属性的名称。 |

### ReturnValue

属性值。

## 另见

* Class [String](../../../system/string/)
* Class [UserProperties](../)
* Namespace [Aspose::Page](../../)
* Library [Aspose.Page for C++](../../../)
## UserProperties::GetPropertyFloat(System::String, float) method


获取浮点属性值。如果请求的属性不存在，则返回提供的默认值。

```cpp
virtual float Aspose::Page::UserProperties::GetPropertyFloat(System::String key, float defValue)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 键 | System::String | 属性的名称。 |
| defValue | 单精度浮点数 | 属性的默认值。 |

### ReturnValue

属性值。

## 另见

* Class [String](../../../system/string/)
* Class [UserProperties](../)
* Namespace [Aspose::Page](../../)
* Library [Aspose.Page for C++](../../../)
