MathMatrix
内容
[
隐藏
]MathMatrix 类
指定 Matrix 对象,由一行或多行多列的子元素布局而成。需要注意的是矩阵没有内置分隔符。若要将矩阵放在括号中,应使用分隔符对象 (IMathDelimiter)。可以使用 null 参数在矩阵中创建空隙。
public sealed class MathMatrix : MathElementBase, IMathMatrix
构造函数
| 名称 | 说明 |
|---|---|
| MathMatrix(int, int) | 初始化 MathMatrix 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| 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; } | 矩阵行之间的垂直间距类型;垂直间距单位可以是 lines 或 points(以 twips 存储)。默认值:SingleSpacingGap (0) |
方法
| 名称 | 说明 |
|---|---|
| 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 元运算符。 |
| Nary(MathNaryOperatorTypes, string, string) | 创建 N 元运算符。 |
| 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() | 在此元素底部添加横线。 |
示例
示例:
[C#]
IMMathMatrix matrix = new MathMatrix(2, 3);
matrix[0, 0] = new MathematicalText("item.1.1");
另请参见
- class MathElementBase
- interface IMathMatrix
- namespace Aspose.Slides.MathText
- assembly Aspose.Slides