iTextSharp.text.pdf.PdfContentByte.ShowTextAlignedKerned C# (CSharp) Метод

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

public ShowTextAlignedKerned ( int alignment, String text, float x, float y, float rotation ) : void
alignment int
text String
x float
y float
rotation float
Результат void
        public void ShowTextAlignedKerned(int alignment, String text, float x, float y, float rotation)
        {
            ShowTextAligned(alignment, text, x, y, rotation, true);
        }

Usage Example

Пример #1
0
        private static void Render_BackBase(PdfContentByte under)
        {
            // Y relative to card top, line width, <repeat>
            float[] measures = new[] { 37, 3f, 144, 1.5f };

            under.SaveState();
            for (int i = 0; i < measures.Length / 2; i++)
            {
                under.SetLineWidth(measures[i * 2 + 1]);
                under.MoveTo(0, CARD_HEIGHT - measures[i * 2]);
                under.LineTo(CARD_WIDTH, CARD_HEIGHT - measures[i * 2]);
                under.Stroke();
            }

            under.SetFontAndSize(baseFont, 7);
            under.ShowTextAlignedKerned(Element.ALIGN_CENTER, "If found, please call KCSAR at (206) 205-8226", CARD_WIDTH / 2, 7, 0);

            under.RestoreState();
        }
PdfContentByte