コード例 #1
0
ファイル: sectioning_tests.cs プロジェクト: asgerhallas/DomFx
        protected Section Section(Content header = null,
            Content footer = null,
            Content content = null)
        {
            var section = new Section(content ?? DomFx.Layouters.Specification.Content.Empty,
                                      header ?? DomFx.Layouters.Specification.Content.Empty,
                                      footer ?? DomFx.Layouters.Specification.Content.Empty);

            sections.Add(section);
            return section;
        }
コード例 #2
0
ファイル: sectioning_tests.cs プロジェクト: asgerhallas/DomFx
 protected Content Content(Unit border = default(Unit),
     IEnumerable<ElementSpecification> elements = null)
 {
     var content = new Content(elements, new Margins { Bottom = border, Left = border, Right = border, Top = border });
     return content;
 }