iTextSharp.text.Paragraph.SetLeading C# (CSharp) Метод

SetLeading() публичный Метод

public SetLeading ( float fixedLeading, float multipliedLeading ) : void
fixedLeading float
multipliedLeading float
Результат void
        public void SetLeading(float fixedLeading, float multipliedLeading)
        {
            this.leading = fixedLeading;
            this.multipliedLeading = multipliedLeading;
        }

Usage Example

Пример #1
0
    public PdfPCell GetRichCell(string html, int colSpan = 1)
    {
        html = this.HtmlDecodeRichText(html);
        var cell = new PdfPCell {
            // Border = 1,
            HorizontalAlignment = Element.ALIGN_LEFT
        };

        iTextSharp.text.Paragraph p = new iTextSharp.text.Paragraph();
        p.SetLeading(0.1f, 0f);

        //   try {
        List <IElement> htmlArrayList = iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList(new StringReader(html), this.GetStyleSheet(true));

        p.InsertRange(0, htmlArrayList);
        //} catch (Exception ex) {
        //    var mh = new MySampleHandler();
        //    using (TextReader sr = new StringReader(html)) {
        //        XMLWorkerHelper.GetInstance().ParseXHtml(mh, sr);
        //    }
        //    p.InsertRange(0, mh.elements);
        //}
        cell.AddElement(p);
        cell.PaddingLeft = 4;
        cell.Colspan     = colSpan;
        return(cell);
    }
All Usage Examples Of iTextSharp.text.Paragraph::SetLeading