Formatted text in unordered list

Formatted text in unordered list

Forum member · Oct 30, 2008
Hi, I'm just learning Generator and I can see how to generate an unordered list, and I've seen sample code for generating formatted text (using FormattedTextArea), but I can't see how to put them together. I have a bulleted list and some of the text in the list needs to be underlined and bold. The list.Items.Add method only takes a simple string, not a nested sub-object, so how do I nest formatted text within a bulleted item? Thanks in advance,

Re: Formatted text in unordered list

Support · Oct 30, 2008
Hello, The list item will only takes normal text and you can not add the formatted text to the list. However you can achieve your requirement by using the FormattedTextArea page element. You will have to add separate formatted text area page element for each list item by specifying the X, Y, Height and Width. You can get the height required by the area using the GetRequiredHeight method of the FormattedTextArea object and you can add another area after the previous one. You will have to keep track of the Y position. You can add the bullets by using the Unicode values or by using some true type or Open type fonts. Thanks, ceTe Software Support Team.