MathBar

MathBar class

指定条形函数,由基参数和上划线或下划线组成

public sealed class MathBar : MathElementBase, IMathBar  

构造函数

名称描述
MathBar(IMathElement)用上划线(顶部位置)初始化 MathBar
MathBar(IMathElement, MathTopBotPositions)用指定的位置初始化 MathBar

属性

名称描述
Base { get; }基参数
Position { get; set; }条形线的位置。默认: 顶部

方法

名称描述
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#]  
MathBar mathBar = new MathBar(new MathematicalText("x"));  

另见