Пример #1
0
        private Phrase Render(ListBlock block)
        {
            //listScope++;

            var views = new Phrase();

            for (int i = 0; i < block.Count(); i++)
            {
                var item = block.ElementAt(i);

                if (item is ListItemBlock itemBlock)
                {
                    var subviews = this.Render(block, i + 1, itemBlock);
                    if (subviews != null)
                    {
                        views.AddRange(subviews);
                    }
                }
            }

            //listScope--;
            return(views);
        }