DisableHtmlRendering on a RadPageViewPage text

3 posts, 1 answers
  1. QuizzBox
    QuizzBox avatar
    46 posts
    Member since:
    Jan 2011

    Posted 28 Oct 2015 Link to this post

    hi, 

    Is there a way to use html on the text on a RadPageViewPage (explorerBar mode).

    I want the first part of the text in black,the end in red.

    Thanks

  2. Answer
    Hristo
    Admin
    Hristo avatar
    716 posts

    Posted 28 Oct 2015 Link to this post

    Hello QuizzBox,

    Thank you for writing.

    Yes, you can use Html-like text formatting in RadPageView. Please check my example below how you can modify the Title and Text properties:
    this.radPageViewPage1.Title = "<html><size=12>This is Title <br><b><font=Arial>Arial, Bold</b><br><i><color= Red><font=Times New Roman>Times, Italic <u>Underline</u><br><size=9>Size = 9<br><color= 0, 0, 255>Sample Text";
    this.radPageViewPage1.Text = "<html><size=8>This is Text <br><b><font=Arial>Arial, Bold</b><br><i><color= Red><font=Times New Roman>Times, Italic <u>Underline</u><br><size=9>Size = 5<br><color= 0, 0, 255>Sample Text";

    Additional information is available in this section of our documentation: TPF | HTML-like Text Formatting. I am also attaching a screenshot showing the result on my end.

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Regards,
    Hristo Merdjanov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. QuizzBox
    QuizzBox avatar
    46 posts
    Member since:
    Jan 2011

    Posted 28 Oct 2015 in reply to Hristo Link to this post

    ok, thanks, works :)

    Control is created dynamically and I put the DisableHtmlRendering to True ;)

Back to Top