public static IPage AddBlock(this IPage self, Action <PageBlock> configure) { var newPageBlock = new PageBlock(); configure(newPageBlock); self.AddBlock(newPageBlock); return(self); }
public static PageBlock With(this PageBlock self, IPageBlockComponent component) { self.AddComponent(component); return(self); }