【发布时间】:2021-05-27 21:41:38
【问题描述】:
我想为使用 OpenXml 创建的表格的某些单元格设置 RTL 方向。
row.Append(
new TableCell(
new Paragraph(
new Run(
new Text("FullName")))){
TableCellProperties = new TableCellProperties()
{
TableCellWidth = new TableCellWidth(){
Type = TableWidthUnitValues.Dxa,
Width = "3400" },
TextDirection = new TextDirection(){
Val = new EnumValue<TextDirectionValues>(TextDirectionValues.TopToBottomRightToLeft)}
}
});
我写了这段代码,但是 TextDirectionValues Enum 没有 RTL 值。
【问题讨论】:
-
您的目标是哪个版本的 office 以及什么语言?