IMathMatrix
内容
[
隐藏
]IMathMatrix 接口
指定 Matrix 对象,由一个或多个行列排列的子元素组成。需要注意的是矩阵没有内建分隔符。要在括号中放置矩阵,应使用分隔符对象 (IMathDelimiter)。可使用空参数在矩阵中创建空格。
public interface IMathMatrix : IMathElement
属性
| 名称 | 描述 |
|---|---|
| AsIMathElement { get; } | 允许获取基础 IMathElement 接口 IMathElement |
| 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; } | 矩阵列之间水平间距的类型;水平间距单位可以是 em 或 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) |
方法
| 名称 | 描述 |
|---|---|
| DeleteColumn(int) | 删除指定的列 |
| DeleteRow(int) | 删除指定的行 |
| GetColumnAlignment(int) | 获取指定列的水平对齐方式 |
| InsertColumnAfter(int) | 在指定列后插入新列。新列中的所有元素最初为 null。 |
| InsertColumnBefore(int) | 在指定列前插入新列。新列中的所有元素最初为 null。 |
| InsertRowAfter(int) | 在指定行后插入新行。新行中的所有元素最初为 null。 |
| InsertRowBefore(int) | 在指定行前插入新行。新行中的所有元素最初为 null。 |
| SetColumnAlignment(int, MathHorizontalAlignment) | 设置指定列的水平对齐方式 |
| SetColumnsAlignment(int, uint, MathHorizontalAlignment) | 设置指定列的水平对齐方式(多个列) |
示例
示例:
[C#]
IMathMatrix matrix = new MathMatrix(2, 3);
matrix[0, 0] = new MathematicalText("item.1.1");
另请参见
- 接口 IMathElement
- 命名空间 Aspose.Slides.MathText
- 程序集 Aspose.Slides