点击或拖拽改变大小

Abstract.IsDerivedFrom 方法

X#
Checks if an object belongs to or is derived from a particular class.

命名空间:  XSharp.XPP
程序集:  XSharp.XPP (在 XSharp.XPP.dll 中) 版本:2.22 GA
语法
 METHOD IsDerivedFrom(
	uParent
) AS LOGIC CLIPPER
查看代码

参数

uParent (Optional)
类型:__Usual
A character string containing the name of the class an object belongs to or is derived from. Alternatively, the class object (System.Type) can be passed instead of the class name.

返回值

类型:Boolean
The method returns .T. (true) if the object executing the method belongs to or is derived from the specified class.
备注
This method is used to check if an unknown object has features of a known class. This is especially useful for event driven programming or when classes are inherited from other classes.
参见