首页 / design / oaFigGroupMem

oaFigGroupMem

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

概览

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

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

详细说明

An oaFigGroupMem represents the membership of an oaFig in an oaFigGroup 。 A figure is placed in a FigGroup by creating an oaFigGroupMem that references the oaFig and the oaFigGroup that it will be a member of。 A figure is removed from a FigGroup by destroying its FigGroupMem。 This class provides functions for manipulating the order in which the members of a FigGroup appear, if that FigGroup is ordered。

方法总览

状态 Python 调用
obj.destroy()
obj.getFigGroup()
obj.getFig()
obj.moveAfter(mem)
obj.moveToFirst()
_design.oaFigGroupMem.create(figGroup, fig)

方法说明

obj.destroy()

绑定状态: 已绑定

Python 调用: obj.destroy()

This function destroys the oaFigGroupMem thereby removing its oaFig from its FigGroup。 It does not destroy the Figure。

Python 示例

from oapy._oa import _design

# assume obj is a oaFigGroupMem
obj.destroy()

obj.getFigGroup()

绑定状态: 已绑定

Python 调用: obj.getFigGroup()

This function returns the oaFigGroup to which this oaFigGroupMem belongs。

Python 示例

from oapy._oa import _design

# assume obj is a oaFigGroupMem
obj.getFigGroup()

obj.getFig()

绑定状态: 已绑定

Python 调用: obj.getFig()

This function returns the oaFig that this oaFigGroupMem encapsulates。

Python 示例

from oapy._oa import _design

# assume obj is a oaFigGroupMem
obj.getFig()

obj.moveAfter(mem)

绑定状态: 已绑定

Python 调用: obj.moveAfter(mem)

This function moves this oaFigGroupMem in the oaFigGroup's ordering and positions this oaFigGroupMem after the specified member。

参数

  • mem: The member after which the oaFigGroupMem is positioned。

异常

  • oacInvalidFigGroupTypeForMemberMove
  • oacFigGroupMemberNotInSameDB
  • oacFigGroupMemberNotInSameFigGroup

Python 示例

from oapy._oa import _design

# assume obj is a oaFigGroupMem
obj.moveAfter(mem)

obj.moveToFirst()

绑定状态: 已绑定

Python 调用: obj.moveToFirst()

This function moves this oaFigGroupMem to the first position in the oaFigGroup's ordering。

异常

  • oacInvalidFigGroupTypeForMemberMove

Python 示例

from oapy._oa import _design

# assume obj is a oaFigGroupMem
obj.moveToFirst()

_design.oaFigGroupMem.create(figGroup, fig)

绑定状态: 已绑定

Python 调用: _design.oaFigGroupMem.create(figGroup, fig)

This function creates a new oaFigGroupMem object making the Figure a member of the FigGroup。

参数

  • figGroup: The oaFigGroup in which the fig is added。
  • fig: The fig to add。

异常

  • oacFigGroupMemberNotInSameDB
  • oacFigAlreadyInFigGroup

Python 示例

from oapy._oa import _design

_design.oaFigGroupMem.create(figGroup, fig)