System::ComponentModel::TypeConverter classe
Contenu
[
Cacher
]TypeConverter class
Classe qui gère la conversion de types dans le modèle de composants. Les objets de cette classe ne doivent être alloués qu’en utilisant la fonction System::MakeObject(). Ne créez jamais d’instance de ce type sur la pile ou en utilisant l’opérateur new, car cela entraînera des erreurs d’exécution et/ou des échecs d’assertion. Enveloppez toujours cette classe dans le pointeur System::SmartPtr et utilisez ce pointeur pour le transmettre aux fonctions en tant qu’argument.
class TypeConverter : public System::Object
Méthodes
| Méthode | Description |
|---|---|
| ConvertFrom(const System::SharedPtr<System::Object>&) | Convertit des objets. |
| virtual ConvertFrom(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&) | Convertit des objets. |
| ConvertFrom(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::String&) | Convertit une chaîne en objet. |
| ConvertFromInvariantString(const System::String&) | Convertit une chaîne invariante en objet. |
| ConvertFromInvariantString(const System::SharedPtr<ITypeDescriptorContext>&, const System::String&) | Convertit une chaîne invariante en objet. |
| ConvertFromString(const System::String&) | Convertit une chaîne en objet. |
| ConvertFromString(const System::SharedPtr<ITypeDescriptorContext>&, const System::String&) | Convertit une chaîne en objet. |
| ConvertFromString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::String&) | Convertit une chaîne en objet. |
| ConvertTo(const System::SharedPtr<System::Object>&, const System::TypeInfo&) | Convertit l’objet en type spécifique. |
| virtual ConvertTo(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&, const System::TypeInfo&) | Convertit l’objet en type spécifique. |
| ConvertToInvariantString(const System::SharedPtr<System::Object>&) | Convertit un objet en chaîne invariante. |
| ConvertToInvariantString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Object>&) | Convertit un objet en chaîne invariante. |
| ConvertToString(const System::SharedPtr<System::Object>&) | Convertit un objet en chaîne. |
| ConvertToString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Object>&) | Convertit un objet en chaîne. |
| ConvertToString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&) | Convertit un objet en chaîne. |
| TypeConverter() | Informations RTTI. |
Voir aussi
- Class Object
- Namespace System::ComponentModel
- Library Aspose.Page for C++