[英]How to align paragraph verticaly and horizontaly like MS word using Openxml?
I would like to align paragraph that i am passing as table to word document using open xml as vertically and horizonaly like as MS word does. 我想像MS word一样使用开放式xml将我作为表格传递给Word文档的段落与垂直和水平对齐。
how can i do this?
我怎样才能做到这一点?
I have solved by my own with use of ParagraphProperties and TablecellProperties of openxml wordprocessing class. 我已经使用openxml文字处理类的ParagraphProperties和TablecellProperties解决了我自己的问题。 To align Vertically, I have used TablecellProperties to vertically align and ParagraphProperties to horizonal align and TextRotation.
为了垂直对齐,我使用TablecellProperties垂直对齐,使用ParagraphProperties进行水平对齐和TextRotation。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.