## EnumValues::GetValueOf(const String\&, bool) const method


Returns boxed value of the enum constant with the specified name.

```cpp
virtual SharedPtr<Object> System::EnumValues<E, Guard>::GetValueOf(const String &str, bool ignoreCase) const override
```


| Parameter | Type | Description |
| --- | --- | --- |
| str | const String\& | The name of the enum constant |
| ignoreCase | bool | Specifeis if the case should be ignored when interpreting the name of the enum constant |

### ReturnValue

A boxed value of the enum constant whose name is specified in **str**.

## See Also

* Typedef [SharedPtr](../../sharedptr/)
* Class [Object](../../object/)
* Class [String](../../string/)
* Class [EnumValues](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
## EnumValues::GetValueOf(long) const method


Returns boxed value of the enum constant with the specified value.

```cpp
virtual SharedPtr<Object> System::EnumValues<E, Guard>::GetValueOf(long val) const override
```


| Parameter | Type | Description |
| --- | --- | --- |
| val | long | The value of the enum constant |

### ReturnValue

A boxed value of the enum constant whose vakye is specified in **str**.

## See Also

* Typedef [SharedPtr](../../sharedptr/)
* Class [Object](../../object/)
* Class [EnumValues](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
