public void StartNewParagraph(int fontIndex, float fontSize, RtfTextAlign alignment, int colorIndex, float spaceAfterPoints)
        {
            CloseCurrentParagraph();

            RtfParagraphFormatting formatting = new RtfParagraphFormatting(fontSize, alignment);

            m_currParagraph = new RtfFormattedParagraph(formatting);
            m_currParagraph.Formatting.FontIndex      = fontIndex;
            m_currParagraph.Formatting.TextColorIndex = colorIndex;
            m_currParagraph.Formatting.SpaceAfter     = TwipConverter.ToTwip(spaceAfterPoints, MetricUnit.Point);
        }
 /// <summary>
 /// Initializes a new instance of ESCommon.Rtf.RtfParagraphFormatting class.
 /// </summary>
 /// <param name="fontSize">Font size in points.</param>
 /// <param name="align">Text align inside the paragraph.</param>
 public RtfParagraphFormatting(float fontSize, RtfTextAlign align)
 {
     FontSize = fontSize;
     Align = align;
 }
 /// <summary>
 /// Initializes a new instance of ESCommon.Rtf.RtfParagraphFormatting class.
 /// </summary>
 /// <param name="align">Text align inside the paragraph.</param>
 public RtfParagraphFormatting(RtfTextAlign align)
 {
     Align = align;
 }