Método System::Drawing::ImageFormatConverter::ConvertTo

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

Convierte el objeto a un tipo específico.

SharedPtr<Object> System::Drawing::ImageFormatConverter::ConvertTo(const SharedPtr<ComponentModel::ITypeDescriptorContext> &context, const SharedPtr<Globalization::CultureInfo> &culture, const SharedPtr<Object> &value, const TypeInfo &destinationType) override
ParámetroTipoDescripción
contextconst SharedPtr<ComponentModel::ITypeDescriptorContext>&Object información del contexto de conversión.
culturaconst SharedPtr<Globalization::CultureInfo>&Cultura a usar al convertir objetos.
valueconst SharedPtr<Object>&Object para convertir.
destinationTypeconst TypeInfo&Tipo al que convertir.

ReturnValue

Objeto convertido.

Ver también

ImageFormatConverter::ConvertTo(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&, const System::TypeInfo&) method

Convierte el objeto a un tipo específico.

virtual System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertTo(const System::SharedPtr<ITypeDescriptorContext> &context, const System::SharedPtr<System::Globalization::CultureInfo> &culture, const System::SharedPtr<System::Object> &value, const System::TypeInfo &destinationType)
ParámetroTipoDescripción
contextconst System::SharedPtr<ITypeDescriptorContext>&Object información del contexto de conversión.
culturaconst System::SharedPtr<System::Globalization::CultureInfo>&Cultura a usar al convertir objetos.
valueconst System::SharedPtr<System::Object>&Object para convertir.
destinationTypeconst System::TypeInfo&Tipo al que convertir.

ReturnValue

Objeto convertido.

Ver también

ImageFormatConverter::ConvertTo(const System::SharedPtr<System::Object>&, const System::TypeInfo&) method

Convierte el objeto a un tipo específico.

System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertTo(const System::SharedPtr<System::Object> &value, const System::TypeInfo &destinationType)
ParámetroTipoDescripción
valueconst System::SharedPtr<System::Object>&Object para convertir.
destinationTypeconst System::TypeInfo&Tipo al que convertir.

ReturnValue

Objeto convertido.

Ver también