Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2385
How to set the sub string highlight in xamTextEditor
posted

I want to highlight part of text in xamTextEditor in editor mode by behind code(as the result of string search function).

 Who know how to implement it? Thanks

  • 27093
    posted

    Hello Shengjie,

    I am just checking if you got this worked out or you still require any assistance or clarification on the matter.

    If this is what you were looking for please verify the answer so it helps other users as well.

    Sincerely,
    Petar Monov
    Developer Support Engineer
    Infragistics Bulgaria
    www.infragistics.com/support

  • 27093
    posted

    Hello Shengjie,

     

    You can use the XamTextEditor’s SelectAll method or the SelectionStart and SelectionLenght properties. You can also use the SlectedText property to get the result of your selection.

     

    Please let me know if you require any further assistance on the matter.

     

    Sincerely,

    Petar Monov

    Developer Support Engineer

    Infragistics Bulgaria

    www.infragistics.com/support