递归火山软件开发平台

标题: 这对象把我整得魔障了 [打印本页]

作者: lhlabfaogo    时间: 2022-7-19 20:11
标题: 这对象把我整得魔障了
Object model overview
The API is exposed through a set of objects. An object has events, methods and properties that you can use to both query and edit the object.

To start customising the software using the API, you should first learn about the structure of the API. This structure is often referred to as the object model. An overview of the object model is given here. Detail of each object, its events, methods and properties can be found in subsequent sections of the online help.

At the top of the object model hierarchy is the Application object. All other objects in the model are located below the Application object, and can be accessed via this top-level object. Detailed knowledge of the object model hierarchy will mean that you can readily traverse through the hierarchy to gain access to a particular type of object.

A large number of objects in the API can only be accessed indirectly. In such cases you must reference the object from another object higher in the object hierarchy. For example, the MacArguments object can only be accessed indirectly. It cannot exist on its own, in fact the MacArguments object exists only as a member of the MacCommand object. Therefore access to the MacArguments object is possible only from the MacCommand object.

Another concept vital to the API is the collection object. A collection object is a special type of object, allowing iteration over an existing set of objects. All collection objects support the Count property and the Item method. Count returns the number of items in the collection while Item returns the indicated item in the collection. Further properties and methods are defined according to requirements for each collection object. An example of a collection object is the MacCommands collection. In addition


上面这是帮助文档 我用有道FY了下 看得魔障了 顶级对象 什么间接访问 不解了
我用易语只看到了18个属性 和8个方法 。用火山也能成功访问 但是帮助文档上面有很多方法和属性等等
想要间接访问低层对象应该怎么访问 求大佬解答下 新手一个 学习火山没几天




作者: lhlabfaogo    时间: 2022-7-19 20:12
小学文化 英语几乎为0000 大佬们帮帮看下
作者: hxznhf    时间: 2022-7-19 21:09
读需要对象属性不就行了
作者: fan15500    时间: 2022-7-19 22:29
抽象方法吧  抽象方法不能直接访问。他没有实现方法,必须有人继承他并实现他,你才可以调用吧
作者: lhlabfaogo    时间: 2022-7-20 09:02
有谁给个例子啊 ,就像访问上面的说明文档的mac那个间接访问对象 ,这玩意要怎么写,顶级对象可以轻松访问 间接对象不知道怎么写了
作者: lhlabfaogo    时间: 2022-7-20 09:05
属性下面还有方法 这API




欢迎光临 递归火山软件开发平台 (https://bbs.voldp.com/) Powered by Discuz! X3.4