コード例 #1
0
 internal BasePageSnippet(ISnippetModel model, string view, Margins margins, SnippetAlignment snippetAlignment)
 {
     Model            = model;
     View             = view;
     Margins          = margins;
     SnippetAlignment = snippetAlignment;
 }
コード例 #2
0
ファイル: Header.cs プロジェクト: stephenhendry/Wired.Razor
 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)
 {
 }
コード例 #3
0
 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)
 {
 }