MathMatrix

MathMatrix class

指定由一个或多个行和列排列的子元素组成的 Matrix 对象。重要的是要注意,矩阵没有内置的分隔符。要将矩阵放入括号中,您应该使用分隔符对象 (IMathDelimiter)。可以使用空参数在矩阵中创建间隙。

public sealed class MathMatrix : MathElementBase, IMathMatrix

Constructors

名称描述
MathMatrix(int, int)初始化 MathMatrix 类的新实例。

Properties

名称描述
BaseJustification { get; set; }指定与周围文本的垂直对齐方式。可能的值有 top、bottom 和 center。默认值:Center
ColumnCount { get; }矩阵中的列数
ColumnGap { get; set; }矩阵列之间的水平间距的值;如果 ColumnGapRule 设置为 3 (“Exactly”),则单位解释为 twips (1/20 的点);如果 ColumnGapRule 设置为 4 (“Multiple”),则单位解释为 0.5 em 的增量。在其他情况下将被忽略。默认值:0
ColumnGapRule { get; set; }矩阵列之间的水平间距的类型;水平间距单位可以是 ems 或 points (以 twips 存储)。默认值:SingleSpacingGap (0)
HidePlaceholders { get; set; }隐藏空矩阵元素的占位符。默认值:false
Item { get; set; }矩阵的元素
MinColumnWidth { get; set; }以 twips (1/20 的点) 表示的最小列宽。间隙间距(也称为 “Column Gap” 或 “Gap Width”)将加到 MinColumnWidth 上以确定总矩阵列间距(不同列相同边缘之间的距离)。默认值:0。
RowCount { get; }矩阵中的行数
RowGap { get; set; }矩阵行之间的垂直间距的值;如果 RowGapRule 设置为 3 (“Exactly”),则单位解释为 twips (1/20 的点);如果 RowGapRule 设置为 4 (“Multiple”),则单位解释为半行。默认值:0
RowGapRule { get; set; }矩阵行之间的垂直间距的类型;垂直间距单位可以是行或点(以 twips 存储)。默认值:SingleSpacingGap (0)

Methods

名称描述
Accent(char)设置一个重音符号(位于该元素顶部的字符)
AsArgumentOfFunction(IMathElement)使用此实例作为参数接受指定的函数
AsArgumentOfFunction(MathFunctionsOfOneArgument)使用此实例作为参数接受指定的函数
AsArgumentOfFunction(string)使用此实例作为参数接受指定的函数
AsArgumentOfFunction(MathFunctionsOfTwoArguments, IMathElement)使用此实例作为参数和指定的额外参数接受指定的函数
AsArgumentOfFunction(MathFunctionsOfTwoArguments, string)使用此实例作为参数和指定的额外参数接受指定的函数
DeleteColumn(int)删除指定的列
DeleteRow(int)删除指定的行
Divide(IMathElement)创建一个带有该分子和指定分母的分数
Divide(string)创建一个带有该分子和指定分母的分数
Divide(IMathElement, MathFractionTypes)创建一个具有指定类型的分数,分子为该值,分母为指定值
Divide(string, MathFractionTypes)创建一个具有指定类型的分数,分子为该值,分母为指定值
Enclose()将数学元素用括号括起来
virtual Enclose(char, char)使用指定字符(例如括号或其他字母)将数学元素括起来
Function(IMathElement)使用该实例作为函数名称接受参数的函数
Function(string)使用该实例作为函数名称接受参数的函数
GetChildren()获取子元素
GetColumnAlignment(int)获取指定列的水平对齐方式
Group()使用底部花括号将此元素放入组中
Group(char, MathTopBotPositions, MathTopBotPositions)使用如底部花括号或其他的分组字符将此元素放入组中
InsertColumnAfter(int)在指定列后插入新列。新列中的所有元素最初都为null。
InsertColumnBefore(int)在指定列前插入新列。新列中的所有元素最初都为null。
InsertRowAfter(int)在指定行后插入新行。新行中的所有元素最初都为null。
InsertRowBefore(int)在指定行前插入新行。新行中的所有元素最初都为null。
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)指定从指定参数获得给定度数的数学根。
SetColumnAlignment(int, MathHorizontalAlignment)设置指定列的水平对齐方式
SetColumnsAlignment(int, uint, MathHorizontalAlignment)设置指定列的水平对齐方式
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#]
IMathMatrix matrix = new MathMatrix(2, 3);
matrix[0, 0] = new MathematicalText("item.1.1");

See Also