Beispiel #1
0
        // extract the variable lead columns and static grid ones into collections
        private void DistributeColumnsStructure(IList <ArelleColumnSection> outlist)
        {
            foreach (var item in this.MainRowsWithAttributedChildren)
            {
                var  colStructure = new ArelleColumnSection();
                bool borderfound  = false;
                foreach (var ditem in item.Descendants().Where(td => td.HasAttributes == true))
                {
                    if ((ditem.Name == "th" || ditem.Attributes["class"].Value == "tableCell") &&
                        !ditem.Attributes.Contains("colSpan"))
                    {
                        colStructure.StaticColumns.Add(ditem);
                        borderfound = true;
                    }
                    else
                    {
                        if (!borderfound)
                        {
                            colStructure.DynamicColumns.Add(ditem);
                        }
                    }
                }

                outlist.Add(colStructure);
            }
        }
        // extract the variable lead columns and static grid ones into collections
        private void DistributeColumnsStructure(IList<ArelleColumnSection> outlist)
        {
            foreach (var item in this.MainRowsWithAttributedChildren)
            {
                var colStructure = new ArelleColumnSection();
                bool borderfound = false;
                foreach (var ditem in item.Descendants().Where(td => td.HasAttributes == true))
                {
                    if ((ditem.Name == "th" || ditem.Attributes["class"].Value == "tableCell") &&
                        !ditem.Attributes.Contains("colSpan"))
                    {
                        colStructure.StaticColumns.Add(ditem);
                        borderfound = true;
                    }
                    else
                    {
                        if (!borderfound)
                        {
                            colStructure.DynamicColumns.Add(ditem);
                        }
                    }
                }

                outlist.Add(colStructure);
            }
        }