oaOccTextOverride
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaOccTextOverride 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaOccTextOverride 当前在 oapy 中可用的 Python 接口。
详细说明
The oaOccTextOverride class implements an unique occurrence of an oaTextOverride object in a design hierarchy。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getMasterText() |
| ✅ | obj.getMasterTextText(text) |
| ✅ | obj.getInst() |
| ✅ | obj.isBound() |
方法说明
obj.getMasterText()
绑定状态: 已绑定
Python 调用: obj.getMasterText()
This function returns the text object associated with this textOverride object。 Note that this function will return NULL if the associated instance is not bound, or the associated text is not bound。 This function returns the master text associated with this textOverride object。 This is the text which is used when attempting to bind to the masterText object。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccTextOverride
obj.getMasterText()
obj.getMasterTextText(text)
绑定状态: 已绑定
Python 调用: obj.getMasterTextText(text)
This function returns the master text associated with this textOverride object。 This is the text which is used when attempting to bind to the masterText object。
参数
text: The text string to be filled with the master text。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccTextOverride
obj.getMasterTextText(text)
obj.getInst()
绑定状态: 已绑定
Python 调用: obj.getInst()
This function returns the instance associated with this textOverride object。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccTextOverride
obj.getInst()
obj.isBound()
绑定状态: 已绑定
Python 调用: obj.isBound()
This function returns a boolean which indicates whether this text display is currently bound to the cross design master text object。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccTextOverride
obj.isBound()