internal BasePageSnippet(ISnippetModel model, string view, Margins margins, SnippetAlignment snippetAlignment) { Model = model; View = view; Margins = margins; SnippetAlignment = snippetAlignment; }
public Header(ISnippetModel model, string view, float height, float leftMargin, float rightMargin, float topMargin) : base(model, view, new Margins(new Rectangle(PageSize.A4.Width, height), leftMargin, rightMargin, topMargin, 0), SnippetAlignment.Top) { }
public Footer(ISnippetModel model, string view, float height, float leftMargin, float rightMargin, float bottomMargin) : base(model, view, new Margins(new Rectangle(PageSize.A4.Width, height), leftMargin, rightMargin, 0, bottomMargin), SnippetAlignment.Bottom) { }