MathFraction
内容
[
隐藏
]MathFraction class
指定分数对象,由分子和分母组成,二者由分数线分隔。分数线可以是水平或对角线,具体取决于分数属性。该分数对象还用于表示堆叠函数,该函数将一个元素放在另一个元素上方,而没有分数线。
public sealed class MathFraction : MathElementBase, IMathFraction
Constructors
Name | Description |
---|---|
MathFraction(IMathElement, IMathElement) | 使用指定的分子和分母初始化类型为 ‘Bar’ 的 MathFraction |
MathFraction(IMathElement, IMathElement, MathFractionTypes) | 使用指定的分子、分母和类型初始化 MathFraction |
Properties
Name | Description |
---|---|
Denominator { get; } | 分母 |
FractionType { get; set; } | 分数类型 默认值: Bar |
Numerator { get; } | 分子 |
Methods
Name | Description |
---|---|
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() | 在该元素底部设置一条横线 |
Examples
示例:
[C#]
MathFraction mathFraction = new MathFraction(new MathematicalText("x"), new MathematicalText("y"), MathFractionTypes.Linear);
See Also
- class MathElementBase
- interface IMathFraction
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides