MathSuperscriptElement

MathSuperscriptElement class

指定由基底和位于上方和右侧的缩小尺寸的上标组成的上标对象

public sealed class MathSuperscriptElement : BaseScript, IMathSuperscriptElement

构造函数

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

属性

名称描述
Base { 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#]
MathSuperscriptElement superscriptElement = new MathematicalText("N").SetSuperscript("i");

另请参见