locked
How to hide part of text in a richtextbox or textbox using WPF? RRS feed

  • Question

  • i would like to ask for a a way in wpf of hiding and unhiding some specific lines in a richtextbox or textbox using C# at Runtime and at the same time leave the rest of the lines visible. I would also like not to be a visible space between the visible and unvisible lines. i have an idea of selecting the lines and then change font size to 0.01, but it isnt so much elegand.

    Thanks in advance.

    Wednesday, July 17, 2013 3:36 PM

Answers

  • Instead of making font size to 0.01, why don't you keep a copy of original text and delete those words from the text and display in control.

    Thanks & Regards
    Syed Amjad Sr. Silverlight/WPF Developer,
    yahoo : syedamjad6736@yahoo.com, skype : syedamjad.0786.
    Please use Marked as Answer if my post solved your problem and use Vote As Helpful if a post was useful.

    • Proposed as answer by noorbakhsh Thursday, July 18, 2013 6:04 PM
    • Marked as answer by Lisa Zhu Friday, July 26, 2013 8:25 AM
    Thursday, July 18, 2013 8:19 AM