System::Drawing::ImageFormatConverter::ConvertTo metodo

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

Converte l’oggetto in un tipo specifico.

SharedPtr<Object> System::Drawing::ImageFormatConverter::ConvertTo(const SharedPtr<ComponentModel::ITypeDescriptorContext> &context, const SharedPtr<Globalization::CultureInfo> &culture, const SharedPtr<Object> &value, const TypeInfo &destinationType) override
ParametroTipoDescrizione
contextconst SharedPtr<ComponentModel::ITypeDescriptorContext>&Object informazioni sul contesto di conversione.
culturaconst SharedPtr<Globalization::CultureInfo>&Culture da utilizzare durante la conversione degli oggetti.
valueconst SharedPtr<Object>&Object da convertire.
destinationTypeconst TypeInfo&Tipo in cui convertire.

ReturnValue

Oggetto convertito.

Vedi anche

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

Converte l’oggetto in un tipo specifico.

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)
ParametroTipoDescrizione
contextconst System::SharedPtr<ITypeDescriptorContext>&Object informazioni sul contesto di conversione.
culturaconst System::SharedPtr<System::Globalization::CultureInfo>&Culture da utilizzare durante la conversione degli oggetti.
valueconst System::SharedPtr<System::Object>&Object da convertire.
destinationTypeconst System::TypeInfo&Tipo in cui convertire.

ReturnValue

Oggetto convertito.

Vedi anche

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

Converte l’oggetto in un tipo specifico.

System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertTo(const System::SharedPtr<System::Object> &value, const System::TypeInfo &destinationType)
ParametroTipoDescrizione
valueconst System::SharedPtr<System::Object>&Object da convertire.
destinationTypeconst System::TypeInfo&Tipo in cui convertire.

ReturnValue

Oggetto convertito.

Vedi anche