Пример #1
0
 public Context(string tag, Font font, Color color, TextField.TextAlignmentType alignment)
 {
     this.tag       = tag;
     this.font      = font;
     this.color     = color;
     this.alignment = alignment;
 }
Пример #2
0
 private Com.Delta.Print.Engine.Pdf.HorizontalAlignment GetTextHorizontalAlignment(TextField.TextAlignmentType horAlignment)
 {
     if (horAlignment == TextField.TextAlignmentType.Right)
     {
         return(Com.Delta.Print.Engine.Pdf.HorizontalAlignment.Right);
     }
     else if (horAlignment == TextField.TextAlignmentType.Center)
     {
         return(Com.Delta.Print.Engine.Pdf.HorizontalAlignment.Center);
     }
     else if (horAlignment == TextField.TextAlignmentType.Justified)
     {
         return(Com.Delta.Print.Engine.Pdf.HorizontalAlignment.Justified);
     }
     else
     {
         return(Com.Delta.Print.Engine.Pdf.HorizontalAlignment.Left);
     }
 }