MathRightSubSuperscriptElement

MathRightSubSuperscriptElement 类

指定下标上标对象,该对象由基底以及放置在基底右侧的下标和上标组成。

public sealed class MathRightSubSuperscriptElement : BaseScript, IMathRightSubSuperscriptElement

构造函数

名称描述
MathRightSubSuperscriptElement(IMathElement, IMathElement, IMathElement)初始化 MathRightSubSuperscriptElement 类的新实例。

属性

名称描述
AlignScripts { get; set; }指定下标/上标的对齐方式。为 true 时,下标和上标水平对齐。为 false 时,它们根据基底的形状进行字距调整。默认值为 false。
Base { get; }基底参数
Subscript { get; }下标参数
Superscript { get; }上标参数

方法

名称描述
Accent(char)设置重音符号(此元素顶部的字符)
AsArgumentOfFunction(IMathElement)使用此实例作为参数,调用指定的函数
AsArgumentOfFunction(MathFunctionsOfOneArgument)使用此实例作为参数,调用指定的函数
AsArgumentOfFunction(string)使用此实例作为参数,调用指定的函数
AsArgumentOfFunction(MathFunctionsOfTwoArguments, IMathElement)使用此实例作为参数,并使用指定的附加参数,调用指定的函数
AsArgumentOfFunction(MathFunctionsOfTwoArguments, string)使用此实例作为参数,并使用指定的附加参数,调用指定的函数
Divide(IMathElement)使用此分子和指定的分母创建分数
Divide(string)使用此分子和指定的分母创建分数
Divide(IMathElement, MathFractionTypes)使用此分子和指定的分母,按指定类型创建分数
Divide(string, MathFractionTypes)使用此分子和指定的分母,按指定类型创建分数
Enclose()将数学元素用括号括起
virtual Enclose(char, char)使用指定字符(如括号或其他字符)将数学元素括起来
Function(IMathElement)使用此实例作为函数名,获取参数的函数
Function(string)使用此实例作为函数名,获取参数的函数
GetChildren()获取子元素
Group()使用底部大括号将此元素放入组中
Group(char, MathTopBotPositions, MathTopBotPositions)使用分组字符(如底部大括号或其他)将此元素放入组中
Integral(MathIntegralTypes)获取没有上下限的积分
Integral(MathIntegralTypes, IMathElement, IMathElement)获取带上下限的积分
Integral(MathIntegralTypes, string, string)获取带上下限的积分
Integral(MathIntegralTypes, IMathElement, IMathElement, MathLimitLocations)获取带限制位置的积分
Integral(MathIntegralTypes, string, string, MathLimitLocations)获取带限制位置的积分
virtual Join(IMathElement)连接数学元素并形成数学块
virtual Join(string)连接数学文本并形成数学块
Nary(MathNaryOperatorTypes, IMathElement, IMathElement)创建 N 元运算符
Nary(MathNaryOperatorTypes, string, string)创建 N 元运算符
Overbar()在此元素顶部设置横线
Radical(IMathElement)指定给定次数的数学根号,基于指定的参数。
Radical(string)指定给定次数的数学根号,基于指定的参数。
SetLowerLimit(IMathElement)获取下限
SetLowerLimit(string)获取下限
SetSubscript(IMathElement)创建下标
SetSubscript(string)创建下标
SetSubSuperscriptOnTheLeft(IMathElement, IMathElement)在左侧创建下标和上标
SetSubSuperscriptOnTheLeft(string, string)在左侧创建下标和上标
SetSubSuperscriptOnTheRight(IMathElement, IMathElement)在右侧创建下标和上标
SetSubSuperscriptOnTheRight(string, string)在右侧创建下标和上标
SetSuperscript(IMathElement)创建上标
SetSuperscript(string)创建上标
SetUpperLimit(IMathElement)获取上限
SetUpperLimit(string)获取上限
ToBorderBox()将此元素放入边框盒中
ToBorderBox(bool, bool, bool, bool, bool, bool, bool, bool)将此元素放入边框盒中
ToBox()将此元素放入非可视盒(逻辑分组),用于对方程或其他数学文本实例的组件进行分组。盒装对象可以(例如)充当带或不带对齐点的运算符仿真器,充当换行点,或被分组以防止内部换行。
virtual ToMathArray()放入垂直数组
Underbar()在此元素底部设置横线

示例

示例:

[C#]
MathRightSubSuperscriptElement subsuperscript = new MathematicalText("N").SetSubSuperscriptOnTheRight("i", "j");

另请参见