System::Drawing::ImageFormatConverter::ConvertTo metod

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

Konverterar objekt till en specifik typ.

SharedPtr<Object> System::Drawing::ImageFormatConverter::ConvertTo(const SharedPtr<ComponentModel::ITypeDescriptorContext> &context, const SharedPtr<Globalization::CultureInfo> &culture, const SharedPtr<Object> &value, const TypeInfo &destinationType) override
ParameterTypeBeskrivning
contextconst SharedPtr<ComponentModel::ITypeDescriptorContext>&Object konverteringskontextinformation.
kulturconst SharedPtr<Globalization::CultureInfo>&Kultur att använda vid konvertering av objekt.
valueconst SharedPtr<Object>&Object att konvertera.
destinationTypeconst TypeInfo&Typ att konvertera till.

ReturnValue

Konverterat objekt.

Se även

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

Konverterar objekt till en specifik typ.

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)
ParameterTypeBeskrivning
contextconst System::SharedPtr<ITypeDescriptorContext>&Object konverteringskontextinformation.
kulturconst System::SharedPtr<System::Globalization::CultureInfo>&Kultur att använda vid konvertering av objekt.
valueconst System::SharedPtr<System::Object>&Object att konvertera.
destinationTypeconst System::TypeInfo&Typ att konvertera till.

ReturnValue

Konverterat objekt.

Se även

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

Konverterar objekt till en specifik typ.

System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertTo(const System::SharedPtr<System::Object> &value, const System::TypeInfo &destinationType)
ParameterTypeBeskrivning
valueconst System::SharedPtr<System::Object>&Object att konvertera.
destinationTypeconst System::TypeInfo&Typ att konvertera till.

ReturnValue

Konverterat objekt.

Se även