示例#1
0
 /** @param orientation vertical orientation of the text */
 public void setTextDirection(TextDirection orientation) {
   CTTextBodyProperties bodyPr = getTextBodyPr();
   if (bodyPr != null) {
     if (orientation == null) {
       if (bodyPr.isSetVert()) bodyPr.unsetVert();
     } else {
       bodyPr.setVert(STTextVerticalType.Enum.forInt(orientation.ordinal() + 1));
     }
   }
 }