System::ComponentModel::TypeConverter class
محتويات
[
يخفي
]TypeConverter class
فئة تتعامل مع تحويل الأنواع في نموذج المكوّن. يجب تخصيص كائنات هذه الفئة فقط باستخدام الدالة System::MakeObject(). لا تقم أبداً بإنشاء نسخة من هذا النوع على المكدس أو باستخدام المشغل new، حيث سيؤدي ذلك إلى أخطاء وقت التشغيل أو أخطاء تأكيد. احرص دائماً على تغليف هذه الفئة في مؤشر System::SmartPtr واستخدام هذا المؤشر لتمريره إلى الدوال كمعامل.
class TypeConverter : public System::Object
الطرق
| طريقة | الوصف |
|---|---|
| ConvertFrom(const System::SharedPtr<System::Object>&) | يحول الكائنات. |
| virtual ConvertFrom(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&) | يحول الكائنات. |
| ConvertFrom(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::String&) | يحول السلسلة إلى كائن. |
| ConvertFromInvariantString(const System::String&) | يحوّل السلسلة الثابتة إلى كائن. |
| ConvertFromInvariantString(const System::SharedPtr<ITypeDescriptorContext>&, const System::String&) | يحوّل السلسلة الثابتة إلى كائن. |
| ConvertFromString(const System::String&) | يحول السلسلة إلى كائن. |
| ConvertFromString(const System::SharedPtr<ITypeDescriptorContext>&, const System::String&) | يحول السلسلة إلى كائن. |
| ConvertFromString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::String&) | يحول السلسلة إلى كائن. |
| ConvertTo(const System::SharedPtr<System::Object>&, const System::TypeInfo&) | يحول الكائن إلى نوع محدد. |
| virtual ConvertTo(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&, const System::TypeInfo&) | يحول الكائن إلى نوع محدد. |
| ConvertToInvariantString(const System::SharedPtr<System::Object>&) | يحوّل الكائن إلى سلسلة ثابتة. |
| ConvertToInvariantString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Object>&) | يحوّل الكائن إلى سلسلة ثابتة. |
| ConvertToString(const System::SharedPtr<System::Object>&) | يحوّل الكائن إلى سلسلة. |
| ConvertToString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Object>&) | يحوّل الكائن إلى سلسلة. |
| ConvertToString(const System::SharedPtr<ITypeDescriptorContext>&, const System::SharedPtr<System::Globalization::CultureInfo>&, const System::SharedPtr<System::Object>&) | يحوّل الكائن إلى سلسلة. |
| TypeConverter() | معلومات RTTI. |
انظر أيضًا
- Class Object
- Namespace System::ComponentModel
- Library Aspose.Font for C++