IMathMatrix
内容
[
隐藏
]IMathMatrix interface
指定 Matrix 对象,由排列在一个或多个行和列中的子元素组成。 重要的是要注意矩阵没有内置分隔符。 要将矩阵放在括号中,您应该使用分隔符对象(IMathDelimiter)。 Null 参数可用于在矩阵中创建间隙。
public interface IMathMatrix : IMathElement
特性
姓名 | 描述 |
---|---|
AsIMathElement { get; } | 允许获取基础 IMathElement 接口 IMathElement |
BaseJustification { get; set; } | 指定相对于周围文本的垂直对齐方式。 可能的值是顶部、底部和中心。 默认值:中心 |
ColumnCount { get; } | 矩阵中的列数 |
ColumnGap { get; set; } | 矩阵列之间的水平间距值; 如果 ColumnGapRule 设置为 3(“精确”),则单位被解释为缇(点的 1/20) 如果 ColumnGapRule 设置为 4( “Multiple”),则单位被解释为 0.5 em 增量的数量。 在其他情况下忽略。 默认值:0 |
ColumnGapRule { get; set; } | 矩阵列之间的水平间距类型; 水平间距单位可以是 em 或点(存储为缇)。 默认值:SingleSpacingGap (0) |
HidePlaceholders { get; set; } | 隐藏空矩阵元素的占位符 默认值:false |
Item { get; set; } | 矩阵元素 |
MinColumnWidth { get; set; } | 最小列宽,以缇为单位(点的 1/20) 间隙间距(也称为“列间隙”或“间隙” Width”)添加到 MinColumnWidth 以确定总矩阵列间距 (不同列的相同边缘之间的距离)。 默认值:0。 |
RowCount { get; } | 矩阵中的行数 |
RowGap { get; set; } | 矩阵行之间的垂直间距值; 如果 RowGapRule 设置为 3(“精确”),则单位被解释为缇(点的 1/20) 如果 RowGapRule 设置为 4( “Multiple”),则单位被解释为半行。 默认值:0 |
RowGapRule { get; set; } | 矩阵行之间的垂直间距类型; 垂直间距单位可以是线或点(存储为缇)。 默认值:SingleSpacingGap (0) |
方法
姓名 | 描述 |
---|---|
DeleteColumn(int) | 删除指定列 |
DeleteRow(int) | 删除指定行 |
GetColumnAlignment(int) | 获取指定列的水平对齐方式 |
InsertColumnAfter(int) | 在指定的列之后插入一个新列 最初新列中的所有元素都是空的。 |
InsertColumnBefore(int) | 在指定的列之前插入一个新列 最初新列中的所有元素都是空的。 |
InsertRowAfter(int) | 在指定行之后插入一个新行 最初新行中的所有元素都为空。 |
InsertRowBefore(int) | 在指定行之前插入新行 最初新行中的所有元素都为空。 |
SetColumnAlignment(int, MathHorizontalAlignment) | 设置指定列的水平对齐方式 |
SetColumnsAlignment(int, uint, MathHorizontalAlignment) | 设置指定列的水平对齐方式 |
例子
示例:
[C#]
IMathMatrix matrix = new MathMatrix(2, 3);
matrix[0, 0] = new MathematicalText("item.1.1");
也可以看看
- interface IMathElement
- 命名空间 Aspose.Slides.MathText
- 部件 Aspose.Slides