InsertParagraph() public method

public InsertParagraph ( ) : Paragraph
return Paragraph
Exemplo n.º 1
0
        private void Fill_Header(Header header)
        {
            var headerText = _configuration.Get("Template:Header");

            var paragraph = header.InsertParagraph();
            paragraph.Append(headerText)
                 .Color(Color.FromArgb(31, 73, 125))
                 .FontSize(20)
                 .Bold()
                 .Font(new FontFamily("Verdana"));
            paragraph.Alignment = Alignment.center;
        }
Exemplo n.º 2
0
        private void AddHeader( Header header ) {
            var titleFormat = new Formatting();
            titleFormat.Size = 14D;
            titleFormat.Position = 1;
            titleFormat.Spacing = 5;
            titleFormat.Bold = true;

            var title = header.InsertParagraph();

            if( dokumentumTipus.Equals(DokumentumTipus.Eredmenylap.Verseny.MISZ) ) {
                title.Append( Feliratok.HeadLine.Eredmenylap );
                title.AppendLine( Feliratok.HeadLine.EredmenyLapMISZ );
            }
            else {
                title.Append( Feliratok.HeadLine.Eredmenylap );
                title.AppendLine( Feliratok.HeadLine.EredmenyLapTeljes );
            }

            title.Alignment = Alignment.center;

            titleFormat.Size = 10D;
            title.AppendLine( Feliratok.Tulajdonos );
            title.Bold( );
            titleFormat.Position = 12;
            title.AppendLine( );
        }
        private void AddHeader( Header header ) {
            var titleFormat = new Formatting();
            titleFormat.Size = 14D;
            titleFormat.Position = 1;
            titleFormat.Spacing = 5;
            titleFormat.Bold = true;

            var title = header.InsertParagraph();

            title.Append( Feliratok.HeadLine.Eredmenylap );
            title.AppendLine( Feliratok.HeadLine.EredmenyLapEgyesulet );

            title.Alignment = Alignment.center;

            titleFormat.Size = 10D;
            title.AppendLine( Feliratok.Tulajdonos );
            title.Bold( );
            titleFormat.Position = 12;
            title.AppendLine( );
        }