コード例 #1
0
 private void ApplyLayout()
 {
     foreach (var layout in LayoutFactory.Build(Table))
     {
         layout.Apply(_grid);
     }
 }
コード例 #2
0
        public void Build_TableInlinePropsTest()
        {
            _table.InsertAt(new TableProperties(
                                new TableJustification(),
                                new TableBorders(),
                                new TableCellMarginDefault(),
                                new TableCellSpacing(),
                                new Shading(),
                                new TableWidth()
                                )
                            , 0);
            _results = _instance.Build(_table);

            Assert.AreEqual(6, _results.Count);
            AssertLayout <JustificationLayout>(0, new WholeTableArea());
            AssertLayout <BordersLayout>(1, new WholeTableArea());
            AssertLayout <MarginLayout>(2, new WholeTableArea());
            AssertLayout <SpacingLayout>(3, new WholeTableArea());
            AssertLayout <ShadingLayout>(4, new WholeTableArea());
            AssertLayout <WidthLayout>(5, new WholeTableArea());
        }
コード例 #3
0
        public void BoundsHorizontal()
        {
            var layout = _layoutFactory.Build(MonitorWidth, MonitorHeight, BezelHeight);
            var bounds = layout.View.Screen.Bounds;

            bounds.Width.Should().Be(1360);
            bounds.Height.Should().Be(1020);
            bounds.X.Should().Be(280);
            bounds.Y.Should().Be(0);
        }