Different font sizes in a text area

Different font sizes in a text area

Forum member · Mar 16, 2007
Is it possible to have more than one font size in a text area?

Re: Different font sizes in a text area

Support · Mar 19, 2007
Hello, It is not possible to add text with more than one font size within the same TextArea. You will have to use separate TextArea for each portion of the text where you wish to change the font size. However, using the FormattedTextArea page element, you can add different sections of the text with different font sizes for the same FormattedTextArea page element. For e.g. C# Code: string formattedText = "<font color='blue' pointSize='8'>ceTe</font><font color='red' pointSize='18'> Software</font>"; FormattedTextAreaStyle style = new FormattedTextAreaStyle( FontFamily.Helvetica, 10, false ); FormattedTextArea formattedTextArea = new FormattedTextArea( formattedText, 0, 60, 315, 424, style ); VB.NET Code: String formattedText = <font color='blue' pointSize='8'>ceTe</font><font color='red' pointSize='18'> Software</font> Dim Style As FormattedTextAreaStyle = New FormattedTextAreaStyle(FontFamily.Helvetica, 10, False) Dim MyFormattedTextArea As FormattedTextArea = New FormattedTextArea(FormattedText, 0, 60, 315, 424, Style) Thanks, ceTe Software Support Team