System::ComponentModel::TypeConverter::ConvertFrom 方法
内容
[
隐藏
]TypeConverter::ConvertFrom(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&) method
转换对象。
virtual System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertFrom(const System::SharedPtr<ITypeDescriptorContext> &context, const System::SharedPtr<System::Globalization::CultureInfo> &culture, const System::SharedPtr<System::Object> &value)
| 参数 | 类型 | 描述 |
|---|---|---|
| context | const System::SharedPtr<ITypeDescriptorContext>& | Object 转换上下文信息。 |
| 文化 | const System::SharedPtr<System::Globalization::CultureInfo>& | 在转换对象时使用的区域性。 |
| value | const System::SharedPtr<System::Object>& | Object 要转换的。 |
ReturnValue
已转换的对象。
另见
- Typedef SharedPtr
- Class Object
- Class ITypeDescriptorContext
- Class CultureInfo
- Class TypeConverter
- Namespace System::ComponentModel
- Library Aspose.Font for C++
TypeConverter::ConvertFrom(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::String&) method
将字符串转换为对象。
System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertFrom(const System::SharedPtr<ITypeDescriptorContext> &context, const System::SharedPtr<System::Globalization::CultureInfo> &culture, const System::String &value)
| 参数 | 类型 | 描述 |
|---|---|---|
| context | const System::SharedPtr<ITypeDescriptorContext>& | Object 转换上下文信息。 |
| 文化 | const System::SharedPtr<System::Globalization::CultureInfo>& | 在转换对象时使用的区域性。 |
| 值 | const System::String& | 要转换的值。 |
ReturnValue
已转换的对象。
另见
- Typedef SharedPtr
- Class Object
- Class ITypeDescriptorContext
- Class CultureInfo
- Class String
- Class TypeConverter
- Namespace System::ComponentModel
- Library Aspose.Font for C++
TypeConverter::ConvertFrom(const System::SharedPtr<System::Object>&) method
转换对象。
System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertFrom(const System::SharedPtr<System::Object> &value)
| 参数 | 类型 | 描述 |
|---|---|---|
| value | const System::SharedPtr<System::Object>& | Object 要转换的。 |
ReturnValue
已转换的对象。
另见
- Typedef SharedPtr
- Class Object
- Class TypeConverter
- Namespace System::ComponentModel
- Library Aspose.Font for C++