RidhEdit control SelectionColor method?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Catherine Jones

    #1

    RidhEdit control SelectionColor method?

    Hi all,

    We are into the development of an application in C#. In one of the module we
    are using RichEdit control as text editor. This text editor is resposible
    for highlighting certain keywords. After parsing the text we are using the
    following methods for setting the color of the text.

    RichText.Select (int startIndex, int length) &
    RichText.Select ionColor = Color.Red

    This is working fine. But while loading a file of 10000 lines, this color
    setting is taking almost 15mints, which is not at all desiarable. Is there
    any better way to do this. The file format is ASCII and we don't want to use
    rtf format.

    We are using .Net 1.1.

    We have found that for selecting text, SendCommand API with command ID
    EM_SETSEL is much faster.

    But still we are missing a proper solution for changing the font color of
    selected text. Currently we are

    using the method "SelectionColor " which is very slow. Could you give an
    alternative solution for this issue.

    Thanx in advance.


Working...