MathFunction
内容
[
隐藏
]MathFunction 类
指定一个参数的函数。
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, IMMathElement, IMathElement) | 获取积分 |
| Integral(MathIntegralTypes, string, string) | 获取积分 |
| Integral(MathIntegralTypes, IMMathElement, IMMathElement, MathLimitLocations) | 获取积分 |
| Integral(MathIntegralTypes, string, string, MathLimitLocations) | 获取积分 |
| virtual Join(IMathElement) | 连接数学元素并形成数学块 |
| virtual Join(string) | 连接数学文本并形成数学块 |
| Nary(MathNaryOperatorTypes, IMMathElement, IMMathElement) | 创建 N 元运算符 |
| Nary(MathNaryOperatorTypes, string, string) | 创建 N 元运算符 |
| Overbar() | 在此元素顶部设置横线 |
| Radical(IMathElement) | 指定给定次数的数学根,来自指定参数。 |
| Radical(string) | 指定给定次数的数学根,来自指定参数。 |
| SetLowerLimit(IMMathElement) | 获取下限 |
| SetLowerLimit(string) | 获取下限 |
| SetSubscript(IMMathElement) | 创建下标 |
| SetSubscript(string) | 创建下标 |
| SetSubSuperscriptOnTheLeft(IMMathElement, IMMathElement) | 在左侧创建下标和上标 |
| SetSubSuperscriptOnTheLeft(string, string) | 在左侧创建下标和上标 |
| SetSubSuperscriptOnTheRight(IMMathElement, IMMathElement) | 在右侧创建下标和上标 |
| SetSubSuperscriptOnTheRight(string, string) | 在右侧创建下标和上标 |
| SetSuperscript(IMMathElement) | 创建上标 |
| SetSuperscript(string) | 创建上标 |
| SetUpperLimit(IMMathElement) | 获取上限 |
| 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"));