/// <summary>
        /// Generates the Rich Text from the selection of a <see cref="TextArea"/>.
        /// </summary>
        /// <param name="textArea">The text area.</param>
        /// <returns>The selected text in Rich Text Format.</returns>
        public static string GenerateRtf(TextArea textArea)
        {
            RtfWriter rtfWriter = new RtfWriter();

            return(rtfWriter.GenerateRtfInternal(textArea));
        }
 /// <summary>
 /// Generates the Rich Text from the selection of a <see cref="TextArea"/>.
 /// </summary>
 /// <param name="textArea">The text area.</param>
 /// <returns>The selected text in Rich Text Format.</returns>
 public static string GenerateRtf(TextArea textArea)
 {
     RtfWriter rtfWriter = new RtfWriter();
       return rtfWriter.GenerateRtfInternal(textArea);
 }