MathFraction
内容
[
隐藏
]MathFraction 类
指定分数对象,由分子和分母通过分数线分隔。分数线可以是水平或对角线,取决于分数属性。分数对象还用于表示堆叠函数,即将一个元素放在另一个元素之上,且没有分数线。
public sealed class MathFraction : MathElementBase, IMathFraction
构造函数
| 名称 | 描述 |
|---|---|
| MathFraction(IMathElement, IMathElement) | 使用指定的分子和分母初始化类型为 ‘Bar’ 的 MathFraction |
| MathFraction(IMathElement, IMathElement, MathFractionTypes) | 使用指定的分子、分母和类型初始化 MathFraction |
属性
| 名称 | 描述 |
|---|---|
| Denominator { get; } | 分母 |
| FractionType { get; set; } | 分数类型 默认:Bar |
| Numerator { 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-ary 运算符 |
| Nary(MathNaryOperatorTypes, string, string) | 创建 N-ary 运算符 |
| 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#]
MathFraction mathFraction = new MathFraction(new MathematicalText("x"), new MathematicalText("y"), MathFractionTypes.Linear);