MathAccent

MathAccent class

指定音调函数,由基底和组合音调符号组成示例: 𝑎́

public sealed class MathAccent : MathElementBase, IMathAccent

构造函数

名称描述
MathAccent(IMathElement)创建一个应用于指定数学元素的数学音调,使用默认音调字符值
MathAccent(IMathElement, char)创建一个应用于指定数学元素的数学音调

属性

名称描述
Base { get; }应用音调的参数
Character { get; set; }音调字符,值应在 (U+0300–U+036F) 或 (U+20D0–U+20EF) 范围内,默认值: 组合抑扬音调 (U+0302)

方法

名称描述
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#]
IMathElement baseElement = new MathematicalText("x");
MathAccent accent = new MathAccent(baseElement, '~');

另请参阅