## ObjectExt::BoxEnum method


将枚举类型装箱，以便作为 [Object](../../object/) 传播。

```cpp
template<typename T> static SmartPtr<System::BoxedValueBase> System::ObjectExt::BoxEnum(T enumValue)
```


| 参数 | 描述 |
| --- | --- |
| T | [Enum](../../enum/) 类型进行装箱。 |

| 参数 | 类型 | 描述 |
| --- | --- | --- |
| enumValue | T | [Enum](../../enum/) 值进行装箱。 |

### ReturnValue

装箱的枚举值。

## 另见

* Class [SmartPtr](../../smartptr/)
* Class [BoxedValueBase](../../boxedvaluebase/)
* Class [ObjectExt](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
