首页 / design / oaTextLink

oaTextLink

模块: oapy._oa._design 导入: from oapy._oa import _design

概览

oaTextLinkoapy 中可用,可通过 _design 模块访问。

本页汇总 oaTextLink 当前在 oapy 中可用的 Python 接口。

详细说明

The oaTextLink class is used to initialize a component that implements the IText interface to create a text bBox calculator。 The interface can be implemented as an in-memory component or as a plug-in。 For more information, refer to How to Write a Plug-in to Calculate Bounding Boxes for Text in the Programmers Guide 。

方法总览

状态 Python 调用
_design.oaTextLink.setIText(name)
_design.oaTextLink.setIText(textComponentIn)
_design.oaTextLink.reset(textComponentIn)
_design.oaTextLink.getIText()

方法说明

_design.oaTextLink.setIText(name)

绑定状态: 已绑定

Python 调用: _design.oaTextLink.setIText(name)

This function initializes an in-memory text bBox calculator component。 If a component is already initialized, an oacTextLinkAlreadyInitialized exception is thrown。

参数

  • textComponentIn: Pointer to an in-memory text bBox calculator component。

异常

  • oacTextLinkAlreadyInitialized: A text plug-in is already initialized。

Python 示例

from oapy._oa import _design

_design.oaTextLink.setIText(name)

_design.oaTextLink.setIText(textComponentIn)

绑定状态: 已绑定

Python 调用: _design.oaTextLink.setIText(textComponentIn)

This function initializes a text bBox calculator plug-in with the specified name。 If a plug-in is already initialized with a different name, an oacTextLinkAlreadyInitialized exception is thrown。

参数

  • name: Name of the plug-in。

异常

  • oacTextLinkAlreadyInitialized: A text plug-in is already initialized。

Python 示例

from oapy._oa import _design

_design.oaTextLink.setIText(textComponentIn)

_design.oaTextLink.reset(textComponentIn)

绑定状态: 已绑定

Python 调用: _design.oaTextLink.reset(textComponentIn)

Python 示例

from oapy._oa import _design

_design.oaTextLink.reset(textComponentIn)

_design.oaTextLink.getIText()

绑定状态: 已绑定

Python 调用: _design.oaTextLink.getIText()

OpenAccess uses this function to get the plug-in component for the IText interface。 If a component is not already registered, this function loads the default plug-in。

异常

  • oacFailedToGetTextPlugIn: The default plug-in could not be loaded。

Python 示例

from oapy._oa import _design

_design.oaTextLink.getIText()