示例#1
0
        public override IList <OutputNode> GetNodes()
        {
            RegionTable       entity = Entity as RegionTable;
            List <OutputNode> nodes  = new List <OutputNode>();

            ExportTemplate.Export.Entity.Region.Region[] regions = new ExportTemplate.Export.Entity.Region.Region[] {
                entity.GetRegion(RegionType.Body),
                entity.GetRegion(RegionType.RowHeader),
                entity.GetRegion(RegionType.ColumnHeader),
                entity.GetRegion(RegionType.Corner)
            };
            foreach (var region in regions)
            {
                if (region != null)
                {
                    nodes.AddRange(region.GetNodes());
                }
            }
            return(nodes);
        }
示例#2
0
 public void AddRegion(Region region)
 {
     _regions.Add(region);
 }