System::ComponentModel::TypeConverter::ConvertTo méthode
Contenu
[
Cacher
]TypeConverter::ConvertTo(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&, const System::TypeInfo&) method
Convertit un objet en type spécifique.
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)
| Paramètre | Type | Description |
|---|---|---|
| context | const System::SharedPtr<ITypeDescriptorContext>& | Object information de contexte de conversion. |
| culture | const System::SharedPtr<System::Globalization::CultureInfo>& | Culture à utiliser lors de la conversion d’objets. |
| value | const System::SharedPtr<System::Object>& | Object à convertir. |
| destinationType | const System::TypeInfo& | Type vers lequel convertir. |
ReturnValue
Objet converti.
Voir aussi
- Typedef SharedPtr
- Class Object
- Class ITypeDescriptorContext
- Class CultureInfo
- Class TypeInfo
- Class TypeConverter
- Namespace System::ComponentModel
- Library Aspose.Font for C++
TypeConverter::ConvertTo(const System::SharedPtr<System::Object>&, const System::TypeInfo&) method
Convertit un objet en type spécifique.
System::SharedPtr<System::Object> System::ComponentModel::TypeConverter::ConvertTo(const System::SharedPtr<System::Object> &value, const System::TypeInfo &destinationType)
| Paramètre | Type | Description |
|---|---|---|
| value | const System::SharedPtr<System::Object>& | Object à convertir. |
| destinationType | const System::TypeInfo& | Type vers lequel convertir. |
ReturnValue
Objet converti.
Voir aussi
- Typedef SharedPtr
- Class Object
- Class TypeInfo
- Class TypeConverter
- Namespace System::ComponentModel
- Library Aspose.Font for C++