iTextSharp.text.Chunk.SetTextRenderMode C# (CSharp) Метод

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

public SetTextRenderMode ( int mode, float strokeWidth, BaseColor strokeColor ) : Chunk
mode int
strokeWidth float
strokeColor BaseColor
Результат Chunk
        public Chunk SetTextRenderMode(int mode, float strokeWidth, BaseColor strokeColor)
        {
            return SetAttribute(TEXTRENDERMODE, new Object[]{mode, strokeWidth, strokeColor});
        }

Usage Example

Пример #1
0
// ---------------------------------------------------------------------------
    public void EndElement(string name) {
      if ("big".Equals(name)) {
        Chunk bold = new Chunk(Strip(buf), f);
        bold.SetTextRenderMode(
          PdfContentByte.TEXT_RENDER_MODE_FILL_STROKE, 0.5f,
          GrayColor.GRAYBLACK
        );
        Paragraph p = new Paragraph(bold);
        p.Alignment = Element.ALIGN_LEFT;
        cell.AddElement(p);
        buf = new StringBuilder();
      }
      else if ("message".Equals(name)) {
        Paragraph p = new Paragraph(Strip(buf), f);
        p.Alignment = Element.ALIGN_LEFT;
        cell.AddElement(p);
        table.AddCell(cell);
        buf = new StringBuilder();
      }
      else if ("pace".Equals(name)) {
        document.Add(table);
      }
    }
All Usage Examples Of iTextSharp.text.Chunk::SetTextRenderMode