示例#1
0
        public static IPage AddBlock(this IPage self, Action <PageBlock> configure)
        {
            var newPageBlock = new PageBlock();

            configure(newPageBlock);
            self.AddBlock(newPageBlock);
            return(self);
        }
示例#2
0
 public static PageBlock With(this PageBlock self, IPageBlockComponent component)
 {
     self.AddComponent(component);
     return(self);
 }