oaTextDisplayIter
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaTextDisplayIter 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaTextDisplayIter 当前在 oapy 中可用的 Python 接口。
详细说明
The oaTextDisplayIter class implements a special case iterator。 This class returns textDisplays of an oaTextDisplayCollection 。 The following example shows the suggested usage of oaTextDisplayIter: oaTextDisplayIter iter(textDisplay->getTextDisplays()); oaTextDisplay *td; while (td = iter.getNext()) { 。 }。
构造函数
_design.oaTextDisplayIter(sub)
obj = _design.oaTextDisplayIter(sub)
_design.oaTextDisplayIter(iterIn)
obj = _design.oaTextDisplayIter(iterIn)
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.operator=(iterIn) |
| ✅ | obj.getNext() |
| ✅ | obj.reset() |
方法说明
obj.operator=(iterIn)
绑定状态: 已绑定
Python 调用: obj.operator=(iterIn)
Python 示例
from oapy._oa import _design
# assume obj is a oaTextDisplayIter
obj.operator=(iterIn)
obj.getNext()
绑定状态: 已绑定
Python 调用: obj.getNext()
This function returns a pointer to the next object in the collection that is being iterated。 The function switches on the iterator type to determine which function to call on the container。 This function returns NULL when there are no more objects to return。
Python 示例
from oapy._oa import _design
# assume obj is a oaTextDisplayIter
obj.getNext()
obj.reset()
绑定状态: 已绑定
Python 调用: obj.reset()
This function restarts the iterator。 The function switches on the iterator type to determine which function to call on the container。 The next call to getNext() for this oaTextDisplayIter returns the first object in the collection。
Python 示例
from oapy._oa import _design
# assume obj is a oaTextDisplayIter
obj.reset()