Can text in TextArea only the first two characters of text change style?

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v10)  /  Can text in TextArea only the first two characters of text change style?

DynamicPDF CoreSuite for .NET (v10) Forum

With FormattedTextArea, data disappears when a characters contain $(1).
So I want to know how can I change only certain parts.
Posted by a ceTe Software moderator
Hello,

Please try using the html entity or Unicode values to add the symbols to the PDF using FormattedTextArea. Below is the code sample to add the dollar symbol using html entity .

           Document document = new Document();
            Page page = new Page();
            string text = "Doller Symbol added using Html entity: $(1) ";
            FormattedTextArea fta = new FormattedTextArea(text, 0, 0, 500, 400, FontFamily.Helvetica, 10, true);
            page.Elements.Add(fta);
            document.Pages.Add(page);
            document.Draw(@"C:\Temp\Test.pdf");

The DynamicPDF product does not support setting specific style for the part of the text in TextArea. The style applied to the TextArea will be set for whole text in it.

Thanks,
ceTe Software Support Team.


All times are US Eastern Standard time. The time now is 7:06 AM.