/** * * @return the spacing between characters within a text Run, * If this attribute is omitted then a value of 0 or no adjustment is assumed. */ public double GetCharacterSpacing() { CT_TextCharacterProperties rPr = GetRPr(); if (rPr.IsSetSpc()) { return(rPr.spc * 0.01); } return(0); }
/** * Set the spacing between characters within a text Run. * <p> * The spacing is specified in points. Positive values will cause the text to expand, * negative values to condense. * </p> * * @param spc character spacing in points. */ public void SetCharacterSpacing(double spc) { CT_TextCharacterProperties rPr = GetRPr(); if (spc == 0.0) { if (rPr.IsSetSpc()) { rPr.UnsetSpc(); } } else { rPr.spc = ((int)(100 * spc)); } }