public static IEnumerable <Paragraph> Paragraphs(FlowDocument doc)
 {
     return(DependencyObjectExtensions.Descendants(doc).OfType <Paragraph>());
 }