点击或拖拽改变大小

DataObject.DefineMethod 方法

X#
Defines a dynamic method.

命名空间:  XSharp.XPP
程序集:  XSharp.XPP (在 XSharp.XPP.dll 中) 版本:2.22 GA
语法
 VIRTUAL METHOD DefineMethod(
	cName AS STRING,
	uAction AS USUAL
) AS Object
查看代码

参数

cName
类型:String
The name of the method to be defined.
uAction
类型:__Usual
A Function name or codeblock that must be executed when the method is called.

返回值

类型:Object
This method returns the DataObject (self).
备注
Dynamic methods in X# are called from the NoMethod method inside the DataObject class.
参见