コード例 #1
0
ファイル: Episode.cs プロジェクト: darakeon/stories-site
        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]);
        }