MathNaryOperator

MathNaryOperator class

指定N元数学对象,例如求和和积分。它由一个运算符,一个基数(或操作数),以及可选的上限和下限组成。N元运算符的例子包括:求和、并集、交集、积分

public sealed class MathNaryOperator : MathElementBase, IMathNaryOperator

构造函数

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

属性

名称描述
Base { get; }基数参数
GrowToMatchOperandHeight { get; set; }运算符字符在垂直方向上增长以匹配其操作数的高度
HideSubscript { get; set; }隐藏下标
HideSuperscript { get; set; }隐藏上标
LimitLocation { get; set; }极限的位置(下标和上标)
Operator { get; set; }N元运算符字符,例如:‘∑’,‘∫’
Subscript { get; }指定下标参数,例如,在积分的情况下,设置下限
Superscript { 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元运算符
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#]
IMathNaryOperator naryOperator = new MathematicalText("x").Nary(MathNaryOperatorTypes.Summation, "x=1", "100");

另见