الفئة System::ComponentModel::TypeConverter

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.

انظر أيضًا