This commit is contained in:
Kathy Ruffing 2011-03-09 12:09:03 +00:00
parent a0b15ce884
commit 538b139cb4

View File

@ -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;