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

BeginText() публичный метод

public BeginText ( ) : void
Результат void
        public void BeginText()
        {
            BeginText(false);
        }

Same methods

PdfContentByte::BeginText ( bool restoreTM ) : void

Usage Example

Пример #1
1
// ---------------------------------------------------------------------------    
    /**
     * Draws a character representing an arrow at the current position.
     * @see com.itextpdf.text.pdf.draw.VerticalPositionMark#draw(
     *      com.itextpdf.text.pdf.PdfContentByte, float, float, float, float, float)
     */
    // i'm so stupid; originally forgot to override parent method and wondered
    // why the arrows weren't being drawn...
    public override void Draw(
      PdfContentByte canvas, float llx, float lly, float urx, float ury, float y
    ) {
      canvas.BeginText();
      canvas.SetFontAndSize(zapfdingbats, 12);
      if (left) {
        canvas.ShowTextAligned(Element.ALIGN_CENTER,
          ((char) 220).ToString(), llx - 10, y, 0
        );
      }
      else {
        canvas.ShowTextAligned(Element.ALIGN_CENTER,
          ((char) 220).ToString(), urx + 10, y + 8, 180
        );
      }
      canvas.EndText();
    }
All Usage Examples Of iTextSharp.text.pdf.PdfContentByte::BeginText
PdfContentByte