TemplNET.TemplDoc.Paragraphs C# (CSharp) 메소드

Paragraphs() 공개 정적인 메소드

Retrieves all paragraph references from the document body, header, footer, and table content.
public static Paragraphs ( DocX doc ) : IEnumerable
doc Novacode.DocX
리턴 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

예제 #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