public ParagraphType?GlobalParagraphType(Block block, Int32 paragraph) { while (block.ParagraphTypeList.Count <= paragraph) { var index = BlockList.IndexOf(block) + 1; if (index >= BlockList.Count) { return(null); } paragraph -= block.ParagraphTypeList.Count; block = BlockList[index]; } return(block.ParagraphTypeList[paragraph]); }