Search in sources :

Example 1 with CTSignedHpsMeasure

use of org.docx4j.wml.CTSignedHpsMeasure in project docx4j-template by vindell.

the class Docx4j_工具类_S3_Test method addRPrtPositionStyle.

/**
 * @Description: 设置文本位置
 */
public void addRPrtPositionStyle(RPr runProperties, int position) {
    CTSignedHpsMeasure ctPosition = new CTSignedHpsMeasure();
    ctPosition.setVal(BigInteger.valueOf(position));
    runProperties.setPosition(ctPosition);
}
Also used : CTSignedHpsMeasure(org.docx4j.wml.CTSignedHpsMeasure)

Aggregations

CTSignedHpsMeasure (org.docx4j.wml.CTSignedHpsMeasure)1