## ObjectExt::BoxEnum method


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

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


| Parameter | 描述 |
| --- | --- |
| T | 要装箱的 [Enum](../../enum/) 类型。 |

| Parameter | Type | 描述 |
| --- | --- | --- |
| enumValue | T | 要装箱的 [Enum](../../enum/) 值。 |

### ReturnValue

已装箱的枚举值。

## 另见

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