System::EnumValuesBase::Parse 方法
EnumValuesBase::Parse method
返回一个对象,该对象表示具有指定名称的指定枚举类型的枚举常量值。
static SharedPtr<Object> System::EnumValuesBase::Parse(const TypeInfo &type, const String &str, bool ignoreCase)
| 参数 | 类型 | 描述 |
|---|---|---|
| type | const TypeInfo& | 表示要返回的枚举值类型的 TypeInfo 对象 |
| str | const String& | 枚举常量的名称 |
| ignoreCase | bool | 指定在解释枚举常量名称时是否应忽略大小写。 |
ReturnValue
一个对象,表示名称在 str 中指定的枚举常量的值。
另见
- Typedef SharedPtr
- Class Object
- Class TypeInfo
- Class String
- Class EnumValuesBase
- Namespace System
- Library Aspose.Font for C++