Example #1
0
        public UnderlinePatterns GetUnderline()
        {
            CT_RPr rPr = this.run.rPr;

            if (rPr == null || !rPr.IsSetU())
            {
                return(UnderlinePatterns.None);
            }
            return(EnumConverter.ValueOf <UnderlinePatterns, ST_Underline>(rPr.u.val));
        }
Example #2
0
        /**
         * Specifies that the contents of this run.should be displayed along with an
         * underline appearing directly below the character heigh
         *
         * @return the Underline pattern Applyed to this run
         * @see UnderlinePatterns
         */
        public UnderlinePatterns GetUnderline()
        {
            CT_RPr pr = run.rPr;

            return((pr != null && pr.IsSetU()) ? EnumConverter.ValueOf <UnderlinePatterns, ST_Underline>(pr.u.val) : UnderlinePatterns.None);
        }