FormattedTextArea Support

FormattedTextArea Support

Forum member · Feb 21, 2011
Using this line from your examples: Dim MyFormattedTextArea As FormattedTextArea = New FormattedTextArea(formattedText, 0, 0, 256, 400, style) 400 is the text area's height. How do I allow the height to get set automatically depending on the length of "formattedText"?

Re: FormattedTextArea Support

Support · Feb 21, 2011
Hello, FormattedTextArea is not available in v3.0 or older. It is added in v4.0. You can use the below line of code to set the height of the FormattedTextArea to fit the formatted text height. FormattedTextArea formattedTextArea = new FormattedTextArea(s, 0, 0, 256, 400, style); formattedTextArea.Height = formattedTextArea.GetRequiredHeight(); //GetRequiredHeight() will give you the exact height the text fills in the FormattedTextArea. Thanks, ceTe software Support Team.