MathFunction

MathFunction class

指定一个参数的函数。

public sealed class MathFunction : MathElementBase, IMathFunction

构造函数

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

属性

名称描述
Base { get; }函数参数
Name { get; }函数名称,例如,函数名称为 sin 和 cos

方法

名称描述
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#]
MathFunction func = new MathFunction("sin", new MathematicalText("x"));

另请参见