locked
Richeditbox rft and text formating problem

    Question

  • hi all.

    i want to write some words in bold in richeditbox so i set the text in rtf formate for the bold words and normal text for the others but the richeditbox set the rtf text only and don't see the other text , how can i solve it or write special words in bold and the other not ??

    thanks 

    this is my code 

    "

    editbox_1.Document.SetText(TextSetOptions.FormatRtf, @"{\rtf1\b Name:}" + " Address"); 

    "

    Friday, April 4, 2014 8:14 AM

Answers

  • Write it all in RTF format, as you indicated in the TestSetOptions:

    {\rtf1\b Name: \b0 Address}


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Friday, April 4, 2014 12:55 PM
    Moderator