📜  epplus 如何将文本右对齐 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:56.250000             🧑  作者: Mango

代码示例1
//make column H wider and set the text align to the top and right
worksheet.Column(8).Width = 25;
worksheet.Column(8).Style.HorizontalAlignment = ExcelHorizontalAlignment.Right;
worksheet.Column(8).Style.VerticalAlignment = ExcelVerticalAlignment.Top;

//wrap text in the cells
worksheet.Column(8).Style.WrapText = true;