Esempio n. 1
0
        /**
         * if there is a corresponding {@link XWPFParagraph} of the parameter ctTable in the paragraphList of this table
         * the method will return this paragraph
         * if there is no corresponding {@link XWPFParagraph} the method will return null
         * @param p is instance of CTP and is searching for an XWPFParagraph
         * @return null if there is no XWPFParagraph with an corresponding CTPparagraph in the paragraphList of this table
         *         XWPFParagraph with the correspondig CTP p
         */

        public XWPFParagraph GetParagraph(CT_P p)
        {
            foreach (XWPFParagraph paragraph in paragraphs)
            {
                if (p.Equals(paragraph.GetCTP()))
                {
                    return(paragraph);
                }
            }
            return(null);
        }
Esempio n. 2
0
 public XWPFParagraph GetParagraph(CT_P p)
 {
     foreach (XWPFParagraph paragraph in this.paragraphs)
     {
         if (p.Equals((object)paragraph.GetCTP()))
         {
             return(paragraph);
         }
     }
     return((XWPFParagraph)null);
 }
Esempio n. 3
0
 /**
  * if there is a corresponding {@link XWPFParagraph} of the parameter ctTable in the paragraphList of this table
  * the method will return this paragraph
  * if there is no corresponding {@link XWPFParagraph} the method will return null 
  * @param p is instance of CTP and is searching for an XWPFParagraph
  * @return null if there is no XWPFParagraph with an corresponding CTPparagraph in the paragraphList of this table
  * 		   XWPFParagraph with the correspondig CTP p
  */
 public XWPFParagraph GetParagraph(CT_P p)
 {
     foreach (XWPFParagraph paragraph in paragraphs) {
         if(p.Equals(paragraph.GetCTP())){
             return paragraph;
         }
     }
     return null;
 }