コード例 #1
0
        public override void Arrange()
        {
            _document = new Document();
            _page = _document.AddPage();

            _sut = _document.CreateCanvas();
            _page.AddCanvas(_sut);
        }
コード例 #2
0
        public override void Arrange()
        {
            _document = new Document();
            _page = _document.AddPage();
            _sut = _document.CreateTextBox(new Rectangle(33, 12, 155, 255));

            _sut.SetFont(new FontProperties("Helvetica", 10));

            _page.AddTextBox(_sut);
        }
コード例 #3
0
        public override void Arrange()
        {
            _document = new Document();
            _page = _document.AddPage();

            _sut = _document.CreateCanvas();
            _page.AddCanvas(_sut);

            _sut.SetStrokeColor(Color.Blue);
            _sut.SetFillColor(Color.White);
        }
コード例 #4
0
 public override void Arrange()
 {
     _document = new Document();
     _page = _document.AddPage();
     _sut = _document.CreateTextBox(new Rectangle(33, 12, 155, 255));
     var canvas = _document.CreateCanvas();
     canvas.SetStrokeColor(Color.Black);
     canvas.SetFillColor(Color.White);
     canvas.DrawBox(new Rectangle(33, 12, 155, 255));
     _page.AddCanvas(canvas);
 }
コード例 #5
0
ファイル: PdfGenerator.cs プロジェクト: W0dan/OefeningenLogo
        public void InitializePage(DateTime datum)
        {
            _doc = new Document();
            _page = _doc.AddPage();

            var headertext = _doc.CreateTextBox(new Rectangle(0, 0, 50, 50));
            headertext.Position = new Point(400, 20);
            headertext.SetFont(new FontProperties("Helvetica", 10));
            _datum = datum;
            headertext.AddText("Afgedrukt op " + _datum.ToString("dd MMMM yyyy"));
            headertext.AddText("Ingevuld op           " + _datum.ToString("MMMM yyyy"));
            _page.AddTextBox(headertext);

            _text = _doc.CreateTextBox(new Rectangle(0, 0, 160, 50));

            _text.SetColor(Color.Black);
            _text.Position = new Point(40, 20);
        }