跳到主要内容

ApiMath

表示数学公式的类。

方法​

下表列出了可用的方法。

方法返回值描述
GetClassType"math"返回 ApiMath 类的类型。
GetParentParagraphLikeContainer | null | undefined返回直接包含当前数学元素的父元素(段落或内联内容控件)。
GetPosInParentNumber返回当前数学元素在其父元素中的位置(索引)。
GetTextstring返回当前数学元素的内部文本。