From 538b139cb4be78a160df392881c1f12bf771d744 Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 9 Mar 2011 12:09:03 +0000 Subject: [PATCH] --- PROMS/Volian.Print.Library/Rtf2iTextSharp.cs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs b/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs index 3993b0ec..b4452d39 100644 --- a/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs +++ b/PROMS/Volian.Print.Library/Rtf2iTextSharp.cs @@ -219,7 +219,23 @@ namespace Volian.Print.Library chk.SetTextRise(-.25F * chk.Font.Size); else chk.SetTextRise(0); - + switch (visualText.Format.Alignment) + { + case RtfTextAlignment.Center: + _MyParagraph.Alignment = Element.ALIGN_CENTER; + break; + case RtfTextAlignment.Justify: + _MyParagraph.Alignment = Element.ALIGN_JUSTIFIED; + break; + case RtfTextAlignment.Left: + _MyParagraph.Alignment = Element.ALIGN_LEFT; + break; + case RtfTextAlignment.Right: + _MyParagraph.Alignment = Element.ALIGN_RIGHT; + break; + default: + break; + } if (_MyFont == null) { _MyFont = font;