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