简体   繁体   English

如何使用EPPLUS在Excel中制作文本垂直?

[英]how to make Text Vertical in Excel by using the EPPLUS?

how to make Text Vertical in Excel by using the EPPLUS? 如何使用EPPLUS在Excel中制作文本垂直?

I couldn't find the api. 我找不到api。 For an example, "TEXT" in a cell should looks like 例如,单元格中的“TEXT”应如下所示

T
E
X
T

you can achive that with the "TextRotation" property, you basically give an integer value equivalent to the amounth of degrees you want to turn the text, for your example it will be 180 so you can do it like this: 你可以使用“TextRotation”属性来实现,你基本上给出一个等于你想要翻转文本的度数的整数值,对于你的例子它将是180,所以你可以这样做:

myExcelSheet.Cells[row, column].Style.TextRotation = 180;

Hope this helps, greetings. 希望这会有所帮助,问候。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM