TemplNET.TemplDoc.Paragraphs C# (CSharp) Méthode

Paragraphs() public static méthode

Retrieves all paragraph references from the document body, header, footer, and table content.
public static Paragraphs ( DocX doc ) : IEnumerable
doc Novacode.DocX
Résultat IEnumerable
        public static IEnumerable<Paragraph> Paragraphs(DocX doc)
        {
            return doc.Paragraphs
            .Concat(doc.Headers?.odd?.Paragraphs?.ToList() ?? new List<Paragraph>())
            .Concat(doc.Footers?.odd?.Paragraphs?.ToList() ?? new List<Paragraph>());
        }

Usage Example

Exemple #1
0
 public override IEnumerable <TemplMatchText> FindAll(DocX doc, TemplRegex rxp)
 {
     return(TemplMatchText.Find(rxp, TemplDoc.Paragraphs(doc)));
 }
All Usage Examples Of TemplNET.TemplDoc::Paragraphs