简体   繁体   中英

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

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

I couldn't find the api. For an example, "TEXT" in a cell should looks like

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:

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

Hope this helps, greetings.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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