oaOccText
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaOccText 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaOccText 当前在 oapy 中可用的 Python 接口。
详细说明
The oaOccText class implements an unique occurrence of an oaText object in a design hierarchy。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getOrigin(origin) |
| ✅ | obj.getText(text) |
| ✅ | obj.getAlignment() |
| ✅ | obj.getOrient() |
| ✅ | obj.getFont() |
| ✅ | obj.getHeight() |
| ✅ | obj.hasOverbar() |
| ✅ | obj.isVisible() |
| ✅ | obj.isDrafting() |
方法说明
obj.getOrigin(origin)
绑定状态: 已绑定
Python 调用: obj.getOrigin(origin)
This function returns the origin of this occText object。
参数
origin: The point to be filled with the origin of this occText。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccText
obj.getOrigin(origin)
obj.getText(text)
绑定状态: 已绑定
Python 调用: obj.getText(text)
This function returns the value of this occText object。
参数
text: The text string to be filled。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccText
obj.getText(text)
obj.getAlignment()
绑定状态: 已绑定
Python 调用: obj.getAlignment()
This function returns the alignment of this occText object。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccText
obj.getAlignment()
obj.getOrient()
绑定状态: 已绑定
Python 调用: obj.getOrient()
This function returns the orientation of this occText object。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccText
obj.getOrient()
obj.getFont()
绑定状态: 已绑定
Python 调用: obj.getFont()
This function returns the font of this occText object。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccText
obj.getFont()
obj.getHeight()
绑定状态: 已绑定
Python 调用: obj.getHeight()
This function returns the height of this occText object。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccText
obj.getHeight()
obj.hasOverbar()
绑定状态: 已绑定
Python 调用: obj.hasOverbar()
This function returns a boolean indicating whether or not this occText has an overbar on it。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccText
obj.hasOverbar()
obj.isVisible()
绑定状态: 已绑定
Python 调用: obj.isVisible()
This function returns a boolean indicating whether or not this occText is to be displayed。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccText
obj.isVisible()
obj.isDrafting()
绑定状态: 已绑定
Python 调用: obj.isDrafting()
This function returns a boolean indicating whether or not this occText is to be displayed in drafting style or not。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccText
obj.isDrafting()