示例#1
0
 /**
  * Sets the top margin.
  *
  * @see #getTopInset()
  * @param margin the top margin
  */
 public void setTopInset(double margin) {
   CTTextBodyProperties bodyPr = getTextBodyPr();
   if (bodyPr != null) {
     if (margin == -1) bodyPr.unsetTIns();
     else bodyPr.setTIns(Units.toEMU(margin));
   }
 }