System::Drawing::ImageFormatConverter::ConvertFrom method

ImageFormatConverter::ConvertFrom(const SharedPtr<ComponentModel::ITypeDescriptorContext>&, const SharedPtr<Globalization::CultureInfo>&, const SharedPtr<Object>&) method

转换对象。

SharedPtr<Object> System::Drawing::ImageFormatConverter::ConvertFrom(const SharedPtr<ComponentModel::ITypeDescriptorContext> &context, const SharedPtr<Globalization::CultureInfo> &culture, const SharedPtr<Object> &value) override
参数类型描述
contextconst SharedPtr<ComponentModel::ITypeDescriptorContext>&Object 转换上下文信息。
文化const SharedPtr<Globalization::CultureInfo>&在转换对象时使用的区域性。
valueconst SharedPtr<Object>&Object 要转换的。

ReturnValue

已转换的对象。

另见

ImageFormatConverter::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)
参数类型描述
contextconst System::SharedPtr<ITypeDescriptorContext>&Object 转换上下文信息。
文化const System::SharedPtr<System::Globalization::CultureInfo>&在转换对象时使用的区域性。
valueconst System::SharedPtr<System::Object>&Object 要转换的。

ReturnValue

已转换的对象。

另见

ImageFormatConverter::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)
参数类型描述
contextconst System::SharedPtr<ITypeDescriptorContext>&Object 转换上下文信息。
文化const System::SharedPtr<System::Globalization::CultureInfo>&在转换对象时使用的区域性。
const System::String&要转换的值。

ReturnValue

已转换的对象。

另见

ImageFormatConverter::ConvertFrom(const System::SharedPtr<System::Object>&) method

转换对象。

System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertFrom(const System::SharedPtr<System::Object> &value)
参数类型描述
valueconst System::SharedPtr<System::Object>&Object 要转换的。

ReturnValue

已转换的对象。

另见