Paragraphs() public static method

Retrieves all paragraph references from the document body, header, footer, and table content.
public static Paragraphs ( DocX doc ) : IEnumerable
doc Novacode.DocX
return IEnumerable
Ejemplo n.º 1
0
 public override IEnumerable <TemplMatchText> FindAll(DocX doc, TemplRegex rxp)
 {
     return(TemplMatchText.Find(rxp, TemplDoc.Paragraphs(doc)));
 }
Ejemplo n.º 2
0
 public override IEnumerable <TemplMatchText> FindAll(DocX doc, TemplRegex rxp)
 {
     // Expecting only 1 match per paragraph
     return(TemplMatchText.Find(rxp, TemplDoc.Paragraphs(doc), 1));
 }